Browse Source

Fixed invalid assert

Brian Fiete 5 years ago
parent
commit
b4aed82f4c
1 changed files with 5 additions and 2 deletions
  1. 5 2
      IDEHelper/Compiler/BfContext.cpp

+ 5 - 2
IDEHelper/Compiler/BfContext.cpp

@@ -1213,8 +1213,11 @@ void BfContext::PopulateHotTypeDataVTable(BfTypeInstance* typeInstance)
 	
 	
 	if (typeInstance->IsIncomplete())
 	if (typeInstance->IsIncomplete())
 	{
 	{
-		// Should already be populated
-		BF_ASSERT(hotTypeData->mVTableOrigLength != -1);
+		if (mCompiler->mHotState->mCommittedHotCompileIdx > 0)
+		{
+			// Should already be populated
+			BF_ASSERT(hotTypeData->mVTableOrigLength != -1);
+		}
 		return;
 		return;
 	}
 	}