From 05e36920b36bae2da8c0f0d1413c0470344fcb84 Mon Sep 17 00:00:00 2001 From: Walter van Niftrik Date: Mon, 30 Jan 2017 23:07:23 +0100 Subject: ADL: Fix add opcode --- engines/adl/adl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/adl') diff --git a/engines/adl/adl.cpp b/engines/adl/adl.cpp index bc67ec319a..845fc524e1 100644 --- a/engines/adl/adl.cpp +++ b/engines/adl/adl.cpp @@ -1074,7 +1074,7 @@ int AdlEngine::o1_isItemPicEQ(ScriptEnv &e) { int AdlEngine::o1_varAdd(ScriptEnv &e) { OP_DEBUG_2("\tVARS[%d] += %d", e.arg(2), e.arg(1)); - setVar(e.arg(2), getVar(e.arg(2) + e.arg(1))); + setVar(e.arg(2), getVar(e.arg(2)) + e.arg(1)); return 2; } -- cgit v1.2.3