Fix TrieSetArray reading the wrong parameter (bug 3816, r=dvander).

This commit is contained in:
joaquimandrade 2010-09-11 23:02:43 -05:00
parent 26d2a4f877
commit 5324c7c620

View File

@ -108,7 +108,7 @@ static cell AMX_NATIVE_CALL TrieSetString(AMX *amx, cell *params)
// native TrieSetArray(Trie:handle, const key[], const any:buffer[], buffsize) // native TrieSetArray(Trie:handle, const key[], const any:buffer[], buffsize)
static cell AMX_NATIVE_CALL TrieSetArray(AMX *amx, cell *params) 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) if (t == NULL)
{ {