aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Gunkel2012-01-29 06:20:16 +0100
committerTobias Gunkel2012-02-11 08:29:47 +0100
commite33d41035cfbdf81c0178730bec1ed3eb36d7ef7 (patch)
treedf11791ad5e7fecda0e8fd834f9824c8bfb4e350
parentcc68a598564285b6f303f90304891f0beef7f1e4 (diff)
downloadscummvm-rg350-e33d41035cfbdf81c0178730bec1ed3eb36d7ef7.tar.gz
scummvm-rg350-e33d41035cfbdf81c0178730bec1ed3eb36d7ef7.tar.bz2
scummvm-rg350-e33d41035cfbdf81c0178730bec1ed3eb36d7ef7.zip
SCUMM: scumm_vars 14 to 16 are not handled specially in v0
Reading the manuscript will be fixed by this.
-rw-r--r--engines/scumm/script_v2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/script_v2.cpp b/engines/scumm/script_v2.cpp
index 59500deaf5..983bba0914 100644
--- a/engines/scumm/script_v2.cpp
+++ b/engines/scumm/script_v2.cpp
@@ -412,7 +412,7 @@ void ScummEngine_v2::decodeParseString() {
}
int ScummEngine_v2::readVar(uint var) {
- if (var >= 14 && var <= 16)
+ if (_game.version >= 1 && var >= 14 && var <= 16)
var = _scummVars[var];
assertRange(0, var, _numVariables - 1, "variable (reading)");