[Scummvm-cvs-logs] CVS: scummvm/saga sthread.cpp,1.93,1.94

Torbjörn Andersson eriktorbjorn at users.sourceforge.net
Sun Jul 31 09:39:54 CEST 2005


Update of /cvsroot/scummvm/scummvm/saga
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7356

Modified Files:
	sthread.cpp 
Log Message:
Prevent infinite loop in executeThreads() for IHNM. I don't know if this is
the correct behaviour, but surely it's less evil now?


Index: sthread.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/sthread.cpp,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -d -r1.93 -r1.94
--- sthread.cpp	30 Jul 2005 21:11:21 -0000	1.93
+++ sthread.cpp	31 Jul 2005 16:38:15 -0000	1.94
@@ -103,7 +103,6 @@
 	ScriptThread *thread;
 	ScriptThreadList::iterator threadIterator;
 
-
 	if (_vm->_interface->_statusTextInput) {
 		return;
 	}
@@ -120,6 +119,7 @@
 			if (_vm->getGameType() == GType_IHNM) {
 				thread->_flags &= ~kTFlagFinished;
 				thread->_flags |= kTFlagAborted;
+				++threadIterator;
 			} else {
 				threadIterator = _threadList.erase(threadIterator);
 			}





More information about the Scummvm-git-logs mailing list