mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
Clear localVars in entry/exit scripts.
svn-id: r18288
This commit is contained in:
parent
b902e47f39
commit
4fc5ccb8a6
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user