aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui/launcher.cpp2
1 files changed, 1 insertions, 1 deletions
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