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
This commit is contained in:
Torbjörn Andersson 2005-07-31 16:38:15 +00:00
parent 7ae74f3177
commit f69544ebd2

View File

@ -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);
}