aboutsummaryrefslogtreecommitdiff
path: root/scumm/script.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/script.cpp')
-rw-r--r--scumm/script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp
index fe275027ee..92dbac56ee 100644
--- a/scumm/script.cpp
+++ b/scumm/script.cpp
@@ -488,7 +488,7 @@ int ScummEngine::readVar(uint var) {
debugC(DEBUG_VARS, "readvar(%d)", var);
- if (var & 0x2000 && !(_features & GF_NEW_OPCODES)) {
+ if ((var & 0x2000) && (_version <= 5)) {
a = fetchScriptWord();
if (a & 0x2000)
var += readVar(a & ~0x2000);