From 9c44d29b23cc0ba10f7b232a817fc061dabf0af6 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 24 Jul 2007 15:07:38 +0000 Subject: [PATCH] fixed a small bug in GetArrayCell/PushArrayCell that caused cell/char to be swapped --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401165 --- core/smn_adt_array.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/smn_adt_array.cpp b/core/smn_adt_array.cpp index 248645b2..9ac0e966 100644 --- a/core/smn_adt_array.cpp +++ b/core/smn_adt_array.cpp @@ -218,7 +218,7 @@ static cell_t GetArrayCell(IPluginContext *pContext, const cell_t *params) cell_t *blk = array->at(idx); idx = (size_t)params[3]; - if (params[4] == 1) + if (params[4] == 0) { if (idx >= array->blocksize()) { @@ -316,7 +316,7 @@ static cell_t SetArrayCell(IPluginContext *pContext, const cell_t *params) cell_t *blk = array->at(idx); idx = (size_t)params[4]; - if (params[5] == 1) + if (params[5] == 0) { if (idx >= array->blocksize()) {