mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Extra SlotVirtualMethod robustness
This commit is contained in:
parent
d98028d880
commit
afac703502
1 changed files with 4 additions and 1 deletions
|
@ -25064,7 +25064,10 @@ bool BfModule::SlotVirtualMethod(BfMethodInstance* methodInstance, BfAmbiguityCo
|
||||||
{
|
{
|
||||||
checkMethodIdx = lookupMethodInstance->mVirtualTableIdx;
|
checkMethodIdx = lookupMethodInstance->mVirtualTableIdx;
|
||||||
if (checkMethodIdx >= baseVirtualMethodTable.mSize)
|
if (checkMethodIdx >= baseVirtualMethodTable.mSize)
|
||||||
FatalError("SlotVirtualMethod OOB in baseVirtualMethodTable[checkMethodIdx]");
|
{
|
||||||
|
Fail("SlotVirtualMethod out of bounds", checkMethodDef->GetRefNode());
|
||||||
|
continue;
|
||||||
|
}
|
||||||
auto& baseMethodRef = baseVirtualMethodTable[checkMethodIdx];
|
auto& baseMethodRef = baseVirtualMethodTable[checkMethodIdx];
|
||||||
if (baseMethodRef.mDeclaringMethod.mMethodNum == -1)
|
if (baseMethodRef.mDeclaringMethod.mMethodNum == -1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue