From 087979d6cc42d04ad915893e778f4551d43e660b Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 14 Sep 2010 22:00:02 +0000 Subject: [PATCH] - fixed: skipping the skill menu locked up the menu sequence for starting a game. SVN r2777 (trunk) --- src/menu/menudef.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/menu/menudef.cpp b/src/menu/menudef.cpp index 31fe0fd3b5..033ad599ba 100644 --- a/src/menu/menudef.cpp +++ b/src/menu/menudef.cpp @@ -1327,7 +1327,11 @@ void M_StartupSkillMenu(FGameStartup *gs) } if (AllEpisodes[gs->Episode].mNoSkill || AllSkills.Size() == 1) { - ld->mAutoselect = MIN(2u, AllEpisodes.Size()-1); + ld->mAutoselect = firstitem + MIN(2u, AllEpisodes.Size()-1); + } + else + { + ld->mAutoselect = -1; } success = true; }