aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNicola Mettifogo2010-06-19 02:50:46 +0000
committerNicola Mettifogo2010-06-19 02:50:46 +0000
commit61c40e2bd4cf5f23314d819e70d7eb0a966993cf (patch)
treec1ef6138f8aa280c2b99fd7e67193f97a918b5c2 /engines
parentf4b700c4c45e601a5d1571f980ec7e5636e0f166 (diff)
downloadscummvm-rg350-61c40e2bd4cf5f23314d819e70d7eb0a966993cf.tar.gz
scummvm-rg350-61c40e2bd4cf5f23314d819e70d7eb0a966993cf.tar.bz2
scummvm-rg350-61c40e2bd4cf5f23314d819e70d7eb0a966993cf.zip
Save the context of a suspended list before resuming the execution, so that it can safely be suspended again. Patch 3004652 by fuzzie.
svn-id: r50037
Diffstat (limited to 'engines')
-rw-r--r--engines/parallaction/exec.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/parallaction/exec.cpp b/engines/parallaction/exec.cpp
index 24579286e6..434c4f6ae6 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);
}
}