mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +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,10 +3256,13 @@ void BfModule::PopulateUsingFieldData(BfTypeInstance* typeInstance)
|
||||||
}
|
}
|
||||||
|
|
||||||
auto fieldInstance = &usingType->mFieldInstances[fieldDef->mIdx];
|
auto fieldInstance = &usingType->mFieldInstances[fieldDef->mIdx];
|
||||||
|
if (fieldInstance->mResolvedType != NULL)
|
||||||
|
{
|
||||||
auto fieldTypeInst = fieldInstance->mResolvedType->ToTypeInstance();
|
auto fieldTypeInst = fieldInstance->mResolvedType->ToTypeInstance();
|
||||||
if (fieldTypeInst != NULL)
|
if (fieldTypeInst != NULL)
|
||||||
_CheckType(fieldTypeInst, fieldDef->mIsStatic);
|
_CheckType(fieldTypeInst, fieldDef->mIsStatic);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (auto propDef : usingType->mTypeDef->mProperties)
|
for (auto propDef : usingType->mTypeDef->mProperties)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue