diff options
author | Strangerke | 2013-11-09 18:20:29 +0100 |
---|---|---|
committer | Strangerke | 2013-11-09 18:20:29 +0100 |
commit | 1c0367d5a60ca21e0a273175a7f9fb3eeadfd795 (patch) | |
tree | 0ca36f45ce5ce828644081a8845cc6c1e40af6dd /engines/toon | |
parent | c177d450733c014dd8e5e3c25dadf04484433cc8 (diff) | |
download | scummvm-rg350-1c0367d5a60ca21e0a273175a7f9fb3eeadfd795.tar.gz scummvm-rg350-1c0367d5a60ca21e0a273175a7f9fb3eeadfd795.tar.bz2 scummvm-rg350-1c0367d5a60ca21e0a273175a7f9fb3eeadfd795.zip |
TOON: Fix unintialized variables. Fix CID 1002424
Diffstat (limited to 'engines/toon')
-rw-r--r-- | engines/toon/toon.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/toon/toon.cpp b/engines/toon/toon.cpp index a97bfd55e8..7b1456b05c 100644 --- a/engines/toon/toon.cpp +++ b/engines/toon/toon.cpp @@ -952,6 +952,18 @@ ToonEngine::ToonEngine(OSystem *syst, const ADGameDescription *gameDescription) _lastRenderTime = 0; _firstFrame = false; _needPaletteFlush = true; + + _numVariant = 0; + _currentCutaway = nullptr; + for (int i = 0; i < 4; i++) { + _scriptState[i].ip = nullptr; + _scriptState[i].dataPtr = nullptr; + _scriptState[i].retValue = 0; + _scriptState[i].bp = 0; + _scriptState[i].sp = 0; + _scriptState[i].running = false; + } + _currentScriptRegion = 0; } ToonEngine::~ToonEngine() { |