mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-21 09:26:26 +00:00
TOON: Fix unintialized variables. Fix CID 1002424
This commit is contained in:
parent
c177d45073
commit
1c0367d5a6
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user