diff options
author | Max Horn | 2003-10-11 21:15:57 +0000 |
---|---|---|
committer | Max Horn | 2003-10-11 21:15:57 +0000 |
commit | 80c6401b9daed7c988b5b2cbc0dbb3900d2a54b0 (patch) | |
tree | 4ef8b2b5504f0bf4207109d2ca33a7fb7736921a /gui/launcher.cpp | |
parent | 487c2c51c308ec4e48632ce45c72faf2393399c8 (diff) | |
download | scummvm-rg350-80c6401b9daed7c988b5b2cbc0dbb3900d2a54b0.tar.gz scummvm-rg350-80c6401b9daed7c988b5b2cbc0dbb3900d2a54b0.tar.bz2 scummvm-rg350-80c6401b9daed7c988b5b2cbc0dbb3900d2a54b0.zip |
fix for bug #821502 (GUI: Launcher crashes with unexisting targets)
svn-id: r10738
Diffstat (limited to 'gui/launcher.cpp')
-rw-r--r-- | gui/launcher.cpp | 2 |
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 |