mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 18:27:26 +00:00
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:
parent
7ae74f3177
commit
f69544ebd2
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user