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:
parent
9d125eaaf2
commit
77ce6a4175
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue