diff options
author | Denis Kasak | 2009-07-07 21:30:36 +0000 |
---|---|---|
committer | Denis Kasak | 2009-07-07 21:30:36 +0000 |
commit | dd955bb08e57a13476afa4f852a97764fe6ad2a6 (patch) | |
tree | 86cc937739bd944743fce33653c6d93ddce82d94 /engines/draci/script.cpp | |
parent | bab9293f979f706f9e2334011e4a34cf249ecddb (diff) | |
download | scummvm-rg350-dd955bb08e57a13476afa4f852a97764fe6ad2a6.tar.gz scummvm-rg350-dd955bb08e57a13476afa4f852a97764fe6ad2a6.tar.bz2 scummvm-rg350-dd955bb08e57a13476afa4f852a97764fe6ad2a6.zip |
* Made Game::_variables private and, instead, added Game::{get,set}Variable() methods.
* Removed obsolete comment about the cyclic field not being used in Game::loadAnimation()
svn-id: r42246
Diffstat (limited to 'engines/draci/script.cpp')
-rw-r--r-- | engines/draci/script.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/draci/script.cpp b/engines/draci/script.cpp index 028d4a0b43..9047d6c8cc 100644 --- a/engines/draci/script.cpp +++ b/engines/draci/script.cpp @@ -303,10 +303,10 @@ int Script::handleMathExpression(Common::MemoryReadStream &reader) { case kMathVariable: value = reader.readUint16LE(); - stk.push(_vm->_game->_variables[value-1]); + stk.push(_vm->_game->getVariable(value-1)); debugC(3, kDraciBytecodeDebugLevel, "\t\tvariable: %d (%d)", value, - _vm->_game->_variables[value-1]); + _vm->_game->getVariable(value-1)); break; case kMathFunctionCall: |