aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorJames Brown2002-10-28 10:24:27 +0000
committerJames Brown2002-10-28 10:24:27 +0000
commit29f335c15e69446a545e43bd78af293ff5d1d45a (patch)
tree599c19e5aa8351af84e281a994a93f4e1124e1be /gui
parent959a9acf1456f2b39a3b8a20779c71a2637754d2 (diff)
downloadscummvm-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
Diffstat (limited to 'gui')
-rw-r--r--gui/launcher.cpp3
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);