diff options
author | sylvaintv | 2011-03-06 18:08:24 +0100 |
---|---|---|
committer | sylvaintv | 2011-03-06 18:08:24 +0100 |
commit | 7d36aabd4271212e2c0b741172a40d07871e5b4c (patch) | |
tree | ce14d240ed7c20690f32aa924078e4227fa855ef | |
parent | 95a1624f6d6091d143a6f203b9083f96df152871 (diff) | |
download | scummvm-rg350-7d36aabd4271212e2c0b741172a40d07871e5b4c.tar.gz scummvm-rg350-7d36aabd4271212e2c0b741172a40d07871e5b4c.tar.bz2 scummvm-rg350-7d36aabd4271212e2c0b741172a40d07871e5b4c.zip |
TOON: Fix crashs when toon.dat is not present
-rw-r--r-- | engines/toon/toon.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/engines/toon/toon.cpp b/engines/toon/toon.cpp index a6cb8a7dfa..cc694cbe74 100644 --- a/engines/toon/toon.cpp +++ b/engines/toon/toon.cpp @@ -818,6 +818,19 @@ ToonEngine::ToonEngine(OSystem *syst, const ADGameDescription *gameDescription) _inventoryIconSlots = NULL; _genericTexts = NULL; _audioManager = NULL; + _gameState = NULL; + + _locationDirNotVisited = NULL; + _locationDirVisited = NULL; + _specialInfoLine = NULL; + + for (int i = 0; i < 64; i++) { + _sceneAnimations[i]._active = false; + } + + for (int i = 0; i < 32; i++) { + _characters[i] = NULL; + } memset(&_scriptData, 0, sizeof(EMCData)); |