diff options
author | Sven Hesse | 2006-01-14 12:22:36 +0000 |
---|---|---|
committer | Sven Hesse | 2006-01-14 12:22:36 +0000 |
commit | 3c14ef483184c002204199e721caad2c331ef698 (patch) | |
tree | ae2e053c70e4dd5c43fa3f9ce8b2538bc301b05f | |
parent | 6dbfaa2c318187192e728a4580da53cc90e90cb7 (diff) | |
download | scummvm-rg350-3c14ef483184c002204199e721caad2c331ef698.tar.gz scummvm-rg350-3c14ef483184c002204199e721caad2c331ef698.tar.bz2 scummvm-rg350-3c14ef483184c002204199e721caad2c331ef698.zip |
Corrected the bug I introducted into executeGoblinOpcode()'s unimplemented opcode handling
svn-id: r20023
-rw-r--r-- | gob/inter_v1.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gob/inter_v1.cpp b/gob/inter_v1.cpp index fc854006ff..e1a3f7afce 100644 --- a/gob/inter_v1.cpp +++ b/gob/inter_v1.cpp @@ -1606,7 +1606,8 @@ void Inter_v1::executeGoblinOpcode(int i, int16 &extraData, int32 *retVarPtr, Go if (op == NULL) { warning("unimplemented opcodeGoblin: %d", i); _vm->_global->_inter_execPtr -= 2; - _vm->_global->_inter_execPtr += load16() * 2; + int16 cmd = load16(); + _vm->_global->_inter_execPtr += cmd * 2; } else (this->*op) (extraData, retVarPtr, objDesc); |