aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorsylvaintv2011-04-23 21:06:36 +0200
committersylvaintv2011-04-23 21:06:36 +0200
commitf246382f4b70c75ae8b084d79e64fea237bb5603 (patch)
tree82224911a594f31c292fae90f7c7fdee028501e5 /engines
parent13804db8886b0ba6bc833cf78ff0ccbe0a9b2b9b (diff)
downloadscummvm-rg350-f246382f4b70c75ae8b084d79e64fea237bb5603.tar.gz
scummvm-rg350-f246382f4b70c75ae8b084d79e64fea237bb5603.tar.bz2
scummvm-rg350-f246382f4b70c75ae8b084d79e64fea237bb5603.zip
TOON: fix main title crash - Bug #3291725 fixed
Bug #3291725: "TOON: Crash on the title screen"
Diffstat (limited to 'engines')
-rw-r--r--engines/toon/toon.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/toon/toon.cpp b/engines/toon/toon.cpp
index 1bc53e0e20..5c8ca77b8b 100644
--- a/engines/toon/toon.cpp
+++ b/engines/toon/toon.cpp
@@ -116,6 +116,8 @@ void ToonEngine::init() {
_drew = _characters[0];
_flux = _characters[1];
+
+
// preload walk anim for flux and drew
_drew->loadWalkAnimation("STNDWALK.CAF");
_drew->setupPalette();
@@ -135,6 +137,9 @@ void ToonEngine::init() {
memset(_sceneAnimations, 0, sizeof(_sceneAnimations));
memset(_sceneAnimationScripts, 0, sizeof(_sceneAnimationScripts));
+ _drew->setVisible(false);
+ _flux->setVisible(false);
+
_gameState->_currentChapter = 1;
initChapter();
loadCursor();