diff options
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/script_v8.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scumm/script_v8.cpp b/scumm/script_v8.cpp index 36c15eb17e..40db14ace4 100644 --- a/scumm/script_v8.cpp +++ b/scumm/script_v8.cpp @@ -397,7 +397,10 @@ int ScummEngine_v8::readVar(uint var) { if (!(var & 0xF0000000)) { checkRange(_numVariables - 1, 0, var, "Variable %d out of range(r)"); - return _scummVars[var]; + if (var == VAR_CHARINC) + return (9 - _scummVars[var]); + else + return _scummVars[var]; } if (var & 0x80000000) { |