Browse Source

Fixed reentrant field layout alignment bug

Brian Fiete 1 year ago
parent
commit
6f8dbefdec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      IDEHelper/Compiler/BfModuleTypeUtils.cpp

+ 1 - 1
IDEHelper/Compiler/BfModuleTypeUtils.cpp

@@ -5639,7 +5639,7 @@ void BfModule::DoPopulateType(BfType* resolvedTypeRef, BfPopulateType populateTy
 			}
 			dataFieldVec.clear();
 
-			int curSize = typeInstance->mInstSize;
+			int curSize = dataPos;
 			while (dataFieldVec.size() != dataFieldCount)
 			{
 				// Clear out completed buckets