diff options
author | Marisa-Chan | 2013-11-25 13:41:37 +0000 |
---|---|---|
committer | Marisa-Chan | 2013-11-25 13:41:37 +0000 |
commit | feabdc60179452973cc329520b3539f5dc22841a (patch) | |
tree | 2d80adb617d919323b1fc2cb3946de1c3cb46cd0 /engines | |
parent | 9f39b1e819a94d56c2dd6ecbca1488f7e0cd553a (diff) | |
download | scummvm-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.cpp | 3 |
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++; } |