1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Fixed some extension dtor null issues

This commit is contained in:
Brian Fiete 2023-05-30 09:00:30 -04:00
parent 9d125eaaf2
commit 77ce6a4175
2 changed files with 2 additions and 2 deletions

View file

@ -5960,7 +5960,7 @@ BfIRValue BfModule::CreateTypeData(BfType* type, Dictionary<int, int>& usedStrin
if (typeInstance->mDefineState >= BfTypeDefineState_DefinedAndMethodsSlotted)
{
BfMethodInstance* methodInstance = typeInstance->mVirtualMethodTable[mCompiler->GetVTableMethodOffset() + 0].mImplementingMethod;
if (methodInstance->GetOwner() != mContext->mBfObjectType)
if ((methodInstance != NULL) && (methodInstance->GetOwner() != mContext->mBfObjectType))
typeFlags |= BfTypeFlags_HasDestructor;
}
}