From 80c6401b9daed7c988b5b2cbc0dbb3900d2a54b0 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 11 Oct 2003 21:15:57 +0000 Subject: fix for bug #821502 (GUI: Launcher crashes with unexisting targets) svn-id: r10738 --- gui/launcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gui/launcher.cpp') diff --git a/gui/launcher.cpp b/gui/launcher.cpp index 2520028d43..ca8bfa17d5 100644 --- a/gui/launcher.cpp +++ b/gui/launcher.cpp @@ -104,7 +104,7 @@ EditGameDialog::EditGameDialog(NewGui *gui, const String &domain, const TargetSe // 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 -- cgit v1.2.3