summaryrefslogtreecommitdiff
path: root/misc_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc_gui.c')
-rw-r--r--misc_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc_gui.c b/misc_gui.c
index e30e0b0b3..20b18a0ae 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -1480,8 +1480,8 @@ static void SelectScenarioWndProc(Window *w, WindowEvent *e) {
break;
case 6: /* Click the listbox */
- if(e->click.pt.y < list_start)
- DoCommandP(0, Random(), InteractiveRandom(), NULL, CMD_GEN_RANDOM_NEW_GAME);
+ if (e->click.pt.y < list_start)
+ GenRandomNewGame(Random(), InteractiveRandom());
else {
char *name;
int y = (e->click.pt.y - list_start) / 10;