From 4fc5ccb8a68bd55af1bdabaabe8d16a7f19c8e89 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sun, 29 May 2005 11:54:51 +0000 Subject: Clear localVars in entry/exit scripts. svn-id: r18288 --- scumm/script.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scumm/script.cpp b/scumm/script.cpp index 6e1537db55..ba2eda9d88 100644 --- a/scumm/script.cpp +++ b/scumm/script.cpp @@ -829,6 +829,7 @@ void ScummEngine::runExitScript() { } } + initializeLocals(slot, 0); runScriptNested(slot); } if (_version > 2 && VAR(VAR_EXIT_SCRIPT2)) @@ -848,6 +849,7 @@ void ScummEngine::runEntryScript() { vm.slot[slot].recursive = false; vm.slot[slot].freezeCount = 0; vm.slot[slot].delayFrameCount = 0; + initializeLocals(slot, 0); runScriptNested(slot); } if (_version > 2 && VAR(VAR_ENTRY_SCRIPT2)) -- cgit v1.2.3