From ef15ac8b6ec88f3c2d15db8cbf626c6301aadab0 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 13 Oct 2020 22:16:43 +0200 Subject: [PATCH] - fixed: For the episode and skill menu, autoselection for single entries did not work. --- source/core/menu/razemenu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/menu/razemenu.cpp b/source/core/menu/razemenu.cpp index cccb1ca45..61f18d6e0 100644 --- a/source/core/menu/razemenu.cpp +++ b/source/core/menu/razemenu.cpp @@ -416,7 +416,7 @@ static void BuildEpisodeMenu() #endif if (addedVolumes == 1) { - ld->mAutoselect = 0; + ld->mAutoselect = ld->mItems.Size()-1; } if (popped) ld->mItems.Push(popped); } @@ -454,7 +454,7 @@ static void BuildEpisodeMenu() } if (addedSkills == 1) { - ld->mAutoselect = 0; + ld->mAutoselect = ld->mItems.Size() - 1; } if (popped) ld->mItems.Push(popped); }