[entWatch-core] Fix native bound check.
This commit is contained in:
parent
b824afd1a3
commit
786225b6a2
@ -749,7 +749,7 @@ public int Native_GetItemData(Handle hPlugin, int numParams)
|
||||
{
|
||||
int index = GetNativeCell(1);
|
||||
|
||||
if ((index < 0) || (index > g_hArray_Items.Length))
|
||||
if ((index < 0) || (index >= g_hArray_Items.Length))
|
||||
{
|
||||
return ThrowNativeError(SP_ERROR_INDEX, "Item index %d is invalid.", index);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user