diff options
author | johndoe123 | 2014-08-01 22:53:07 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | 297996a0900acca177ecfd3ffa51907ad8d284fa (patch) | |
tree | 0f91f6c87cac520b5d7e334fd11e8e88a564e89e /engines/illusions/thread.cpp | |
parent | ad2c0aaf3d81688f9c575eef64b571cb73249997 (diff) | |
download | scummvm-rg350-297996a0900acca177ecfd3ffa51907ad8d284fa.tar.gz scummvm-rg350-297996a0900acca177ecfd3ffa51907ad8d284fa.tar.bz2 scummvm-rg350-297996a0900acca177ecfd3ffa51907ad8d284fa.zip |
ILLUSIONS: Add sound effects (still buggy)
Diffstat (limited to 'engines/illusions/thread.cpp')
-rw-r--r-- | engines/illusions/thread.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/illusions/thread.cpp b/engines/illusions/thread.cpp index 6c6a7d6fa2..941706abfd 100644 --- a/engines/illusions/thread.cpp +++ b/engines/illusions/thread.cpp @@ -131,13 +131,14 @@ void ThreadList::startThread(Thread *thread) { } void ThreadList::updateThreads() { + // TODO Move outer loop to caller while (1) { Iterator it = _threads.begin(); while (it != _threads.end()) { Thread *thread = *it; if (thread->_terminated) { - it = _threads.erase(it); delete thread; + it = _threads.erase(it); } else { int status = kTSRun; while (!thread->_terminated && status != kTSTerminate && status != kTSYield) |