1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 20:12:21 +02:00

fix out of range check mistake

This commit is contained in:
EinBurgbauer 2021-05-23 11:47:39 +02:00
parent 8c3744cd0c
commit 219f9cc40b

View file

@ -4628,7 +4628,7 @@ bool CeContext::Execute(CeFunction* startFunction, uint8* startStackPtr, uint8*
return false;
}
if (paramIdx < 0 || paramIdx > methodInstance->mParams.mSize)
if (paramIdx < 0 || paramIdx >= methodInstance->mParams.mSize)
{
_Fail("paramIdx is out of range");
return false;