aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/kyra.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2007-06-08 23:04:13 +0000
committerJohannes Schickel2007-06-08 23:04:13 +0000
commitb9d77d2d402c51c324f33bb588485ea11345fd6a (patch)
treece3a1d9ff7648eafa633b2b94630b46d56a9af3d /engines/kyra/kyra.cpp
parente42343d4d3989e124643c1733e0f62d8e4f5c838 (diff)
downloadscummvm-rg350-b9d77d2d402c51c324f33bb588485ea11345fd6a.tar.gz
scummvm-rg350-b9d77d2d402c51c324f33bb588485ea11345fd6a.tar.bz2
scummvm-rg350-b9d77d2d402c51c324f33bb588485ea11345fd6a.zip
Fix crash when closing Kyrandia demo.
svn-id: r27223
Diffstat (limited to 'engines/kyra/kyra.cpp')
-rw-r--r--engines/kyra/kyra.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/kyra/kyra.cpp b/engines/kyra/kyra.cpp
index 7b3251f878..197182e8f3 100644
--- a/engines/kyra/kyra.cpp
+++ b/engines/kyra/kyra.cpp
@@ -110,6 +110,8 @@ KyraEngine::KyraEngine(OSystem *system, const GameFlags &flags)
_curSfxFile = _curMusicTheme = 0;
+ memset(&_itemBkgBackUp, 0, sizeof(_itemBkgBackUp));
+
// sets up all engine specific debug levels
Common::addSpecialDebugLevel(kDebugLevelScriptFuncs, "ScriptFuncs", "Script function debug level");
Common::addSpecialDebugLevel(kDebugLevelScript, "Script", "Script interpreter debug level");