From f69544ebd282e025d9e2bfabdc7419bf09bcc23f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Andersson?= Date: Sun, 31 Jul 2005 16:38:15 +0000 Subject: [PATCH] Prevent infinite loop in executeThreads() for IHNM. I don't know if this is the correct behaviour, but surely it's less evil now? svn-id: r18606 --- saga/sthread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/saga/sthread.cpp b/saga/sthread.cpp index e12de61fee7..c8858c2aedc 100644 --- a/saga/sthread.cpp +++ b/saga/sthread.cpp @@ -103,7 +103,6 @@ void Script::executeThreads(uint msec) { ScriptThread *thread; ScriptThreadList::iterator threadIterator; - if (_vm->_interface->_statusTextInput) { return; } @@ -120,6 +119,7 @@ void Script::executeThreads(uint msec) { if (_vm->getGameType() == GType_IHNM) { thread->_flags &= ~kTFlagFinished; thread->_flags |= kTFlagAborted; + ++threadIterator; } else { threadIterator = _threadList.erase(threadIterator); }