From feabdc60179452973cc329520b3539f5dc22841a Mon Sep 17 00:00:00 2001 From: Marisa-Chan Date: Mon, 25 Nov 2013 13:41:37 +0000 Subject: ZVISION: Change clear queued list firstly, not exec list. --- engines/zvision/script_manager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engines') 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++; } -- cgit v1.2.3