From b9d77d2d402c51c324f33bb588485ea11345fd6a Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Fri, 8 Jun 2007 23:04:13 +0000 Subject: [PATCH] Fix crash when closing Kyrandia demo. svn-id: r27223 --- engines/kyra/kyra.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engines/kyra/kyra.cpp b/engines/kyra/kyra.cpp index 7b3251f878a..197182e8f37 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");