mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Bounds check fix
This commit is contained in:
parent
3bc57b174e
commit
39cf43102e
2 changed files with 2 additions and 2 deletions
|
@ -3959,7 +3959,7 @@ void BfIRCodeGen::HandleNextCmd()
|
|||
CMD_PARAM(int, argIdx);
|
||||
CMD_PARAM(String, name);
|
||||
|
||||
if (argIdx >= func->arg_size())
|
||||
if (argIdx > func->arg_size())
|
||||
{
|
||||
Fail("BfIRCmd_Func_SetParamName argIdx error");
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue