Browse Source

Fixed type data population in const append alloc calc for ref type array

Brian Fiete 1 year ago
parent
commit
1c310e1bec
1 changed files with 2 additions and 2 deletions
  1. 2 2
      IDEHelper/Compiler/BfModule.cpp

+ 2 - 2
IDEHelper/Compiler/BfModule.cpp

@@ -577,7 +577,7 @@ public:
 
 					if (!handled)
 					{
-						origResolvedTypeRef = mModule->ResolveTypeRef(arrayTypeRef->mElementType);
+						origResolvedTypeRef = mModule->ResolveTypeRef(arrayTypeRef->mElementType, BfPopulateType_Declaration);
 					}
 
 					if (origResolvedTypeRef == NULL)
@@ -713,7 +713,7 @@ public:
 						}
 					}
 
-					mModule->PopulateType(resultType);
+					mModule->PopulateType(resultType, resultType->IsValueType() ? BfPopulateType_Data : BfPopulateType_Declaration);
 
 					if (isRawArrayAlloc)
 					{