1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Field resolution compiler crash fix

This commit is contained in:
Hunter Bridges 2022-09-21 11:58:51 -07:00
parent 208f9f2c60
commit d30fafb702

View file

@ -5000,7 +5000,12 @@ BfTypedValue BfExprEvaluator::LoadField(BfAstNode* targetSrc, BfTypedValue targe
{
if ((fieldInstance->mResolvedType == NULL) ||
(!fieldDef->mIsStatic))
{
mModule->PopulateType(typeInstance, BfPopulateType_Data);
// Update fieldInstance pointer as it may have moved
fieldInstance = &typeInstance->mFieldInstances[fieldDef->mIdx];
}
}
if (fieldInstance->mResolvedType == NULL)