1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Fixed using crash with failed fieldInstance

This commit is contained in:
Brian Fiete 2025-01-07 07:49:48 -08:00
parent c600f86da5
commit be3f688576

View file

@ -3256,9 +3256,12 @@ void BfModule::PopulateUsingFieldData(BfTypeInstance* typeInstance)
}
auto fieldInstance = &usingType->mFieldInstances[fieldDef->mIdx];
auto fieldTypeInst = fieldInstance->mResolvedType->ToTypeInstance();
if (fieldTypeInst != NULL)
_CheckType(fieldTypeInst, fieldDef->mIsStatic);
if (fieldInstance->mResolvedType != NULL)
{
auto fieldTypeInst = fieldInstance->mResolvedType->ToTypeInstance();
if (fieldTypeInst != NULL)
_CheckType(fieldTypeInst, fieldDef->mIsStatic);
}
}
for (auto propDef : usingType->mTypeDef->mProperties)