TOON: Fix unintialized variables. Fix CID 1002424

This commit is contained in:
Strangerke 2013-11-09 18:20:29 +01:00
parent c177d45073
commit 1c0367d5a6

View File

@ -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() {