aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2005-05-29 11:54:51 +0000
committerTravis Howell2005-05-29 11:54:51 +0000
commit4fc5ccb8a68bd55af1bdabaabe8d16a7f19c8e89 (patch)
tree1d0124a6ab946a90cfffb2117d87dcbeae283b64
parentb902e47f39673bf694c66e32483eeacc3605f0c9 (diff)
downloadscummvm-rg350-4fc5ccb8a68bd55af1bdabaabe8d16a7f19c8e89.tar.gz
scummvm-rg350-4fc5ccb8a68bd55af1bdabaabe8d16a7f19c8e89.tar.bz2
scummvm-rg350-4fc5ccb8a68bd55af1bdabaabe8d16a7f19c8e89.zip
Clear localVars in entry/exit scripts.
svn-id: r18288
-rw-r--r--scumm/script.cpp2
1 files changed, 2 insertions, 0 deletions
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))