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:
parent
c600f86da5
commit
be3f688576
1 changed files with 6 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue