diff --git a/IDEHelper/Compiler/BfCompiler.cpp b/IDEHelper/Compiler/BfCompiler.cpp index 86012be6..0287f54d 100644 --- a/IDEHelper/Compiler/BfCompiler.cpp +++ b/IDEHelper/Compiler/BfCompiler.cpp @@ -5312,9 +5312,14 @@ void BfCompiler::PopulateReified() BfLogSysM("PopulateReified iteration start\n"); - int typeCount = 0; + Array typeList; + typeList.Reserve(context->mResolvedTypes.mCount); for (auto type : context->mResolvedTypes) - { + typeList.Add(type); + + int typeCount = 0; + for (auto type : typeList) + { auto module = type->GetModule(); typeCount++;