From c41f13f7d8d3c3fe4ee1ed8a94f5492f7adc6945 Mon Sep 17 00:00:00 2001 From: Dave Hooper Date: Thu, 2 Jul 2009 23:29:59 +0000 Subject: [PATCH] Initialise minesweeper main menu so that first item is selected on plugin start (previously was uninitialised, for me usually started off with second item selected) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21617 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/minesweeper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/plugins/minesweeper.c b/apps/plugins/minesweeper.c index a21efeec76..5bd38dc244 100644 --- a/apps/plugins/minesweeper.c +++ b/apps/plugins/minesweeper.c @@ -548,7 +548,7 @@ int count_flags( void ) /* welcome screen where player can chose mine percentage */ enum minesweeper_status menu( void ) { - int selection, result = MINESWEEPER_QUIT; + int selection = 0, result = MINESWEEPER_QUIT; bool menu_quit = false; MENUITEM_STRINGLIST( menu, "Minesweeper Menu", NULL, "Play Minesweeper",