Fixes
This commit is contained in:
parent
f206a626cb
commit
9373719953
|
@ -606,15 +606,13 @@ static void opGetArray(Program* program)
|
||||||
auto& strVal = arrayId;
|
auto& strVal = arrayId;
|
||||||
auto pos = key.asInt();
|
auto pos = key.asInt();
|
||||||
auto str = programGetString(program, strVal.opcode, strVal.integerValue);
|
auto str = programGetString(program, strVal.opcode, strVal.integerValue);
|
||||||
|
|
||||||
// TODO: Is this works?
|
|
||||||
|
|
||||||
char buf[2] = { 0 };
|
char buf[2] = { 0 };
|
||||||
if (pos < strlen(str)) {
|
if (pos < strlen(str)) {
|
||||||
buf[0] = str[pos];
|
buf[0] = str[pos];
|
||||||
programPushString(program, buf);
|
programStackPushString(program, buf);
|
||||||
} else {
|
} else {
|
||||||
programPushString(program, buf);
|
programStackPushString(program, buf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue