From d9110f0041d5b3a7df295fbff6fd856aef414a63 Mon Sep 17 00:00:00 2001 From: jtuu Date: Wed, 2 Oct 2019 20:16:54 +0300 Subject: [PATCH] [VM] Push entire Arg object to stack instead of just its value. --- src/quest_editor/scripting/vm/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: