aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/game_v2.cpp
diff options
context:
space:
mode:
authorSven Hesse2009-06-23 01:20:05 +0000
committerSven Hesse2009-06-23 01:20:05 +0000
commitec5b2d6c9ac7ef9370392f3a0c3e25b136dcb72b (patch)
treee6ab25e769e88275f8752466ca932c7b10d0135a /engines/gob/game_v2.cpp
parent4fa11436a0f97be92bcb0a8bfcfc6fd55840013c (diff)
downloadscummvm-rg350-ec5b2d6c9ac7ef9370392f3a0c3e25b136dcb72b.tar.gz
scummvm-rg350-ec5b2d6c9ac7ef9370392f3a0c3e25b136dcb72b.tar.bz2
scummvm-rg350-ec5b2d6c9ac7ef9370392f3a0c3e25b136dcb72b.zip
Added a method to query the number of variables needed by a Script
svn-id: r41791
Diffstat (limited to 'engines/gob/game_v2.cpp')
-rw-r--r--engines/gob/game_v2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/gob/game_v2.cpp b/engines/gob/game_v2.cpp
index ace842f18e..c1205f3bcd 100644
--- a/engines/gob/game_v2.cpp
+++ b/engines/gob/game_v2.cpp
@@ -205,7 +205,7 @@ void Game_v2::playTot(int16 skipPlay) {
_vm->_global->_inter_animDataSize =
READ_LE_UINT16(_script->getData() + 0x38);
if (!_vm->_inter->_variables)
- _vm->_inter->allocateVars(READ_LE_UINT16(_script->getData() + 0x2C));
+ _vm->_inter->allocateVars(_script->getVariablesCount() & 0xFFFF);
_script->seek(READ_LE_UINT16(_script->getData() + 0x64));