diff options
-rw-r--r-- | scumm/script.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp index 384c46ecc8..e35da79b42 100644 --- a/scumm/script.cpp +++ b/scumm/script.cpp @@ -466,6 +466,12 @@ void Scumm::writeVar(uint var, int value) { void Scumm::getResultPos() { int a; + // FIXME: Subclass this properly + if (_features & GF_AFTER_V2) { + _resultVarNumber = fetchScriptByte(); + return; + } + _resultVarNumber = fetchScriptWord(); if (_resultVarNumber & 0x2000) { a = fetchScriptWord(); |