mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 12:02:21 +02:00
fix out of range check mistake
This commit is contained in:
parent
8c3744cd0c
commit
219f9cc40b
1 changed files with 1 additions and 1 deletions
|
@ -4628,7 +4628,7 @@ bool CeContext::Execute(CeFunction* startFunction, uint8* startStackPtr, uint8*
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (paramIdx < 0 || paramIdx > methodInstance->mParams.mSize)
|
if (paramIdx < 0 || paramIdx >= methodInstance->mParams.mSize)
|
||||||
{
|
{
|
||||||
_Fail("paramIdx is out of range");
|
_Fail("paramIdx is out of range");
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue