mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Merge pull request #1712 from eveningstarinc/hunterbridges/FieldResolutionBugfix
Field resolution compiler crash fix
This commit is contained in:
commit
532deab0cb
1 changed files with 5 additions and 0 deletions
|
@ -5000,7 +5000,12 @@ BfTypedValue BfExprEvaluator::LoadField(BfAstNode* targetSrc, BfTypedValue targe
|
||||||
{
|
{
|
||||||
if ((fieldInstance->mResolvedType == NULL) ||
|
if ((fieldInstance->mResolvedType == NULL) ||
|
||||||
(!fieldDef->mIsStatic))
|
(!fieldDef->mIsStatic))
|
||||||
|
{
|
||||||
mModule->PopulateType(typeInstance, BfPopulateType_Data);
|
mModule->PopulateType(typeInstance, BfPopulateType_Data);
|
||||||
|
|
||||||
|
// Update fieldInstance pointer as it may have moved
|
||||||
|
fieldInstance = &typeInstance->mFieldInstances[fieldDef->mIdx];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fieldInstance->mResolvedType == NULL)
|
if (fieldInstance->mResolvedType == NULL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue