aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorSven Hesse2011-08-28 21:40:09 +0200
committerSven Hesse2011-08-28 21:54:42 +0200
commit8c69d64678361420fc1e51632cd79b29fb3128f3 (patch)
treeb498ffd59e92e23c1b29fc2eddf99c25d053099d /engines/gob
parent5b25fc3e25389c8d44b05bb92d514229f595b627 (diff)
downloadscummvm-rg350-8c69d64678361420fc1e51632cd79b29fb3128f3.tar.gz
scummvm-rg350-8c69d64678361420fc1e51632cd79b29fb3128f3.tar.bz2
scummvm-rg350-8c69d64678361420fc1e51632cd79b29fb3128f3.zip
GOB: Fix a potential input box bug
Diffstat (limited to 'engines/gob')
-rw-r--r--engines/gob/hotspots.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/gob/hotspots.cpp b/engines/gob/hotspots.cpp
index f3647af76e..1a2f4b2769 100644
--- a/engines/gob/hotspots.cpp
+++ b/engines/gob/hotspots.cpp
@@ -1348,12 +1348,12 @@ void Hotspots::evaluateNew(uint16 i, uint16 *ids, InputDesc *inputs,
inputs[inputCount].str = 0;
if ((type >= kTypeInput2NoLeave) && (type <= kTypeInput3Leave)) {
- uint16 length = _vm->_game->_script->readUint16();
+ inputs[inputCount].length = _vm->_game->_script->readUint16();
inputs[inputCount].str =
(const char *)(_vm->_game->_script->getData() + _vm->_game->_script->pos());
- _vm->_game->_script->skip(length);
+ _vm->_game->_script->skip(inputs[inputCount].length);
}
if (left == 0xFFFF) {