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
This commit is contained in:
David Anderson 2007-07-24 15:07:38 +00:00
parent 855060edbb
commit 9c44d29b23

View File

@ -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())
{