From 786225b6a22111151c576c5060c6a70c2637773f Mon Sep 17 00:00:00 2001 From: zaCade Date: Sun, 9 Mar 2025 16:35:06 +0100 Subject: [PATCH] [entWatch-core] Fix native bound check. --- entWatch4/scripting/entWatch-core.sp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entWatch4/scripting/entWatch-core.sp b/entWatch4/scripting/entWatch-core.sp index b4602ec..8068f73 100644 --- a/entWatch4/scripting/entWatch-core.sp +++ b/entWatch4/scripting/entWatch-core.sp @@ -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); }