[Scummvm-cvs-logs] CVS: scummvm/gui launcher.cpp,1.53,1.54
Max Horn
fingolfin at users.sourceforge.net
Sat Oct 11 14:16:06 CEST 2003
Update of /cvsroot/scummvm/scummvm/gui
In directory sc8-pr-cvs1:/tmp/cvs-serv10129
Modified Files:
launcher.cpp
Log Message:
fix for bug #821502 (GUI: Launcher crashes with unexisting targets)
Index: launcher.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/launcher.cpp,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -d -r1.53 -r1.54
--- launcher.cpp 8 Oct 2003 22:10:59 -0000 1.53
+++ launcher.cpp 11 Oct 2003 21:15:57 -0000 1.54
@@ -104,7 +104,7 @@
// Determine whether this is a SCUMM game
// FIXME: This check is evil, as it requires us to hard code GIDs.
- bool isScumm = (GID_SCUMM_FIRST <= target->id && target->id <= GID_SCUMM_LAST);
+ bool isScumm = target && (GID_SCUMM_FIRST <= target->id && target->id <= GID_SCUMM_LAST);
// Label & edit widget for the game ID
More information about the Scummvm-git-logs
mailing list