mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 23:36:00 +02:00
Better failure for invalid method instance
This commit is contained in:
parent
9268e3b25d
commit
5077876ef7
1 changed files with 10 additions and 1 deletions
|
@ -5408,6 +5408,15 @@ bool CeContext::Execute(CeFunction* startFunction, uint8* startStackPtr, uint8*
|
|||
mCeMachine->PrepareFunction(callEntry.mFunction, NULL);
|
||||
}
|
||||
|
||||
if (callEntry.mFunction->mMethodInstance != NULL)
|
||||
{
|
||||
if (callEntry.mFunction->mMethodInstance->GetOwner()->IsDeleting())
|
||||
{
|
||||
_Fail("Calling method on deleted type");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
callEntry.mBindRevision = mCeMachine->mMethodBindRevision;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue