V2 only reads one byte for variable number

svn-id: r7036
This commit is contained in:
James Brown 2003-04-20 16:46:55 +00:00
parent 5f1e964b65
commit 47114e1da2

View File

@ -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();