[Scummvm-cvs-logs] CVS: scummvm/gui launcher.cpp,1.9,1.10

James Brown ender at users.sourceforge.net
Mon Oct 28 02:25:03 CET 2002


Update of /cvsroot/scummvm/scummvm/gui
In directory usw-pr-cvs1:/tmp/cvs-serv17894/gui

Modified Files:
	launcher.cpp 
Log Message:
Don't crash the launcher if there are no entries


Index: launcher.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/launcher.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- launcher.cpp	28 Oct 2002 09:03:00 -0000	1.9
+++ launcher.cpp	28 Oct 2002 10:24:27 -0000	1.10
@@ -97,7 +97,8 @@
 		v++;
 	}
 
-	_list->setList(l);
+	if (l.size() > 0) 
+		_list->setList(l);
 	// TODO - make a default selection (maybe the game user played last?)
 	//_list->setSelected(0);
 





More information about the Scummvm-git-logs mailing list