From 5324c7c620d7aa2011cc8dd2d8b296bd76bc07be Mon Sep 17 00:00:00 2001 From: joaquimandrade Date: Sat, 11 Sep 2010 23:02:43 -0500 Subject: [PATCH] Fix TrieSetArray reading the wrong parameter (bug 3816, r=dvander). --- amxmodx/trie_natives.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amxmodx/trie_natives.cpp b/amxmodx/trie_natives.cpp index 1359c626..c4d301ce 100644 --- a/amxmodx/trie_natives.cpp +++ b/amxmodx/trie_natives.cpp @@ -108,7 +108,7 @@ static cell AMX_NATIVE_CALL TrieSetString(AMX *amx, cell *params) // native TrieSetArray(Trie:handle, const key[], const any:buffer[], buffsize) static cell AMX_NATIVE_CALL TrieSetArray(AMX *amx, cell *params) { - celltrie *t = g_TrieHandles.lookup(params[2]); + celltrie *t = g_TrieHandles.lookup(params[1]); if (t == NULL) {