diff options
author | Walter van Niftrik | 2017-01-30 23:07:23 +0100 |
---|---|---|
committer | Walter van Niftrik | 2017-01-30 23:08:48 +0100 |
commit | 05e36920b36bae2da8c0f0d1413c0470344fcb84 (patch) | |
tree | 2c1de7f62f3dc4d9f1ac20453e39278191f53cd3 /engines/adl | |
parent | 119e1bd30d7c5f95fa5113c4700384bc5c217882 (diff) | |
download | scummvm-rg350-05e36920b36bae2da8c0f0d1413c0470344fcb84.tar.gz scummvm-rg350-05e36920b36bae2da8c0f0d1413c0470344fcb84.tar.bz2 scummvm-rg350-05e36920b36bae2da8c0f0d1413c0470344fcb84.zip |
ADL: Fix add opcode
Diffstat (limited to 'engines/adl')
-rw-r--r-- | engines/adl/adl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |