Skip to content

Commit

Permalink
ZVISION: Change clear queued list firstly, not exec list.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marisa-Chan committed Nov 25, 2013
1 parent 9f39b1e commit feabdc6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions engines/zvision/script_manager.cpp
Expand Up @@ -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;
Expand All @@ -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++;
}
Expand Down

0 comments on commit feabdc6

Please sign in to comment.