mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 12:39:56 +00:00
Initialize properly paramCount in gob1. This fixes several valgrind errors, and the unknown opcodes are now skipped as expected. (related to bug #3018918, only partially solved)
svn-id: r50209
This commit is contained in:
parent
afffcec96e
commit
9a3ef9b8e1
@ -1331,7 +1331,8 @@ bool Inter_v1::o1_goblinFunc(OpFuncParams ¶ms) {
|
||||
gobParams.retVarPtr.set(*_variables, 236);
|
||||
|
||||
cmd = _vm->_game->_script->readInt16();
|
||||
_vm->_game->_script->skip(2);
|
||||
gobParams.paramCount = _vm->_game->_script->readInt16();
|
||||
|
||||
if ((cmd > 0) && (cmd < 17)) {
|
||||
objDescSet = true;
|
||||
gobParams.extraData = _vm->_game->_script->readInt16();
|
||||
|
Loading…
Reference in New Issue
Block a user