diff options
author | Eugene Sandulenko | 2013-10-29 09:53:34 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2013-10-29 09:53:34 +0200 |
commit | ba99c3d3b6979fecd12109b62a62f9eb7e3a9b61 (patch) | |
tree | 8308c2022d21fec4fd18bc00d6c322cc896e90d3 | |
parent | 9d2cc7ce84107d93d56371e8266cbe2193a7923b (diff) | |
download | scummvm-rg350-ba99c3d3b6979fecd12109b62a62f9eb7e3a9b61.tar.gz scummvm-rg350-ba99c3d3b6979fecd12109b62a62f9eb7e3a9b61.tar.bz2 scummvm-rg350-ba99c3d3b6979fecd12109b62a62f9eb7e3a9b61.zip |
TOUCHE: Initialize class variables. CID 1002423
-rw-r--r-- | engines/touche/touche.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/engines/touche/touche.cpp b/engines/touche/touche.cpp index 89cc1ad5af..6ca17c86a1 100644 --- a/engines/touche/touche.cpp +++ b/engines/touche/touche.cpp @@ -110,6 +110,31 @@ ToucheEngine::ToucheEngine(OSystem *system, Common::Language language) DebugMan.addDebugChannel(kDebugCharset, "Charset", "Charset debug level"); _console = new ToucheConsole(this); + + _newEpisodeNum = 0; + _currentEpisodeNum = 0; + _currentAmountOfMoney = 0; + _giveItemToKeyCharNum = 0; + _giveItemToObjectNum = 0; + _giveItemToCounter = 0; + _currentRoomNum = 0; + _waitingSetKeyCharNum1 = 0; + _waitingSetKeyCharNum2 = 0; + _waitingSetKeyCharNum3 = 0; + _script.opcodeNum = 0; + _script.dataOffset = 0; + _script.keyCharNum = 0; + _script.dataPtr = 0; + _script.stackDataPtr = 0; + _script.stackDataBasePtr = 0; + _script.quitFlag = 0; + _opcodesTable = 0; + + for (uint i = 0; i < NUM_SPRITES; i++) + memset(&_spritesTable[i], 0, sizeof(SpriteData)); + + for (uint i = 0; i < NUM_SEQUENCES; i++) + memset(&_sequenceEntryTable[i], 0, sizeof(SequenceEntry)); } ToucheEngine::~ToucheEngine() { |