diff options
author | James Brown | 2002-10-28 10:24:27 +0000 |
---|---|---|
committer | James Brown | 2002-10-28 10:24:27 +0000 |
commit | 29f335c15e69446a545e43bd78af293ff5d1d45a (patch) | |
tree | 599c19e5aa8351af84e281a994a93f4e1124e1be | |
parent | 959a9acf1456f2b39a3b8a20779c71a2637754d2 (diff) | |
download | scummvm-rg350-29f335c15e69446a545e43bd78af293ff5d1d45a.tar.gz scummvm-rg350-29f335c15e69446a545e43bd78af293ff5d1d45a.tar.bz2 scummvm-rg350-29f335c15e69446a545e43bd78af293ff5d1d45a.zip |
Don't crash the launcher if there are no entries
svn-id: r5342
-rw-r--r-- | gui/launcher.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp index 80494f79e6..fd600b8272 100644 --- a/gui/launcher.cpp +++ b/gui/launcher.cpp @@ -97,7 +97,8 @@ LauncherDialog::LauncherDialog(NewGui *gui, GameDetector &detector) 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); |