[Scummvm-cvs-logs] CVS: scummvm/scumm scummvm.cpp,2.548,2.549

James Brown ender at users.sourceforge.net
Thu Jan 15 23:34:01 CET 2004


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv29414/scumm

Modified Files:
	scummvm.cpp 
Log Message:
Don't segfault-on-exit when the game data files are missing.


Index: scummvm.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/scummvm.cpp,v
retrieving revision 2.548
retrieving revision 2.549
diff -u -d -r2.548 -r2.549
--- scummvm.cpp	15 Jan 2004 19:25:17 -0000	2.548
+++ scummvm.cpp	16 Jan 2004 07:33:23 -0000	2.549
@@ -2755,7 +2755,7 @@
 
 	// Unless an error -originated- within the debugger, spawn the debugger. Otherwise
 	// exit out normally.
-	if (!_debugger->isAttached()) {
+	if (_debugger && !_debugger->isAttached()) {
 		printf("%s\n", buf2);	// (Print it again in case debugger segfaults)
 		_debugger->attach(buf2);
 		_debugger->onFrame();





More information about the Scummvm-git-logs mailing list