diff --git a/src/quest_editor/scripting/vm/index.ts b/src/quest_editor/scripting/vm/index.ts index de824378..800d27cb 100644 --- a/src/quest_editor/scripting/vm/index.ts +++ b/src/quest_editor/scripting/vm/index.ts @@ -205,7 +205,7 @@ export class VirtualMachine { case OP_ARG_PUSHW.code: case OP_ARG_PUSHS.code: // push arg as-is - this.push_arg_stack(exec, arg0); + this.push_arg_stack(exec, inst.args[0]); break; // arithmetic operations case OP_ADD.code: