aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMarisa-Chan2013-11-25 13:41:37 +0000
committerMarisa-Chan2013-11-25 13:41:37 +0000
commitfeabdc60179452973cc329520b3539f5dc22841a (patch)
tree2d80adb617d919323b1fc2cb3946de1c3cb46cd0 /engines
parent9f39b1e819a94d56c2dd6ecbca1488f7e0cd553a (diff)
downloadscummvm-rg350-feabdc60179452973cc329520b3539f5dc22841a.tar.gz
scummvm-rg350-feabdc60179452973cc329520b3539f5dc22841a.tar.bz2
scummvm-rg350-feabdc60179452973cc329520b3539f5dc22841a.zip
ZVISION: Change clear queued list firstly, not exec list.
Diffstat (limited to 'engines')
-rw-r--r--engines/zvision/script_manager.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/zvision/script_manager.cpp b/engines/zvision/script_manager.cpp
index b121eaa6a7..f62cbd86c3 100644
--- a/engines/zvision/script_manager.cpp
+++ b/engines/zvision/script_manager.cpp
@@ -87,6 +87,7 @@ void ScriptManager::execScope(script_scope &scope) {
PuzzleList *tmp = scope.exec_queue;
scope.exec_queue = scope.scope_queue;
scope.scope_queue = tmp;
+ scope.scope_queue->clear();
for (PuzzleList::iterator PuzzleIter = scope._puzzles.begin(); PuzzleIter != scope._puzzles.end(); ++PuzzleIter)
(*PuzzleIter)->addedBySetState = 0;
@@ -99,8 +100,6 @@ void ScriptManager::execScope(script_scope &scope) {
checkPuzzleCriteria(*PuzzleIter, scope.proc_count);
}
- scope.exec_queue->clear();
-
if (scope.proc_count < 2) {
scope.proc_count++;
}