aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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++;
}