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:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user