From 451a415b09e539d2c9e2ecbdccbf05142f7bd0b6 Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Thu, 20 May 2010 13:09:10 +0200 Subject: [PATCH] clean suspended list before running commands which might call suspend again --- engines/parallaction/exec.cpp | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/engines/parallaction/exec.cpp b/engines/parallaction/exec.cpp index 2457928..434c4f6 100644 --- a/engines/parallaction/exec.cpp +++ b/engines/parallaction/exec.cpp @@ -193,8 +193,10 @@ void CommandExec::runSuspended() { debugC(3, kDebugExec, "CommandExec::runSuspended()"); _execZone = _suspendedCtxt._zone; - runList(_suspendedCtxt._first, _suspendedCtxt._last); + CommandList::iterator first = _suspendedCtxt._first; + CommandList::iterator last = _suspendedCtxt._last; cleanSuspendedList(); + runList(first, last); } } -- 1.6.3.3