From c1fea5f55a34294216912193f41dfb1dfd5415cb Mon Sep 17 00:00:00 2001 From: Dav999 Date: Fri, 8 Dec 2023 23:07:09 +0100 Subject: [PATCH] Fix current_credits_list_index not always being reset If you go into the middle of the list of translators in the main menu credits, then press Escape, and then go into the credits again, the first page of the list may start at the wrong place, because while game.translator_credits_pagenum was reset to 0, game.current_credits_list_index wasn't. This is fixed now. --- desktop_version/src/Input.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/desktop_version/src/Input.cpp b/desktop_version/src/Input.cpp index e964264b..c68db440 100644 --- a/desktop_version/src/Input.cpp +++ b/desktop_version/src/Input.cpp @@ -1591,6 +1591,7 @@ static void menuactionpress(void) //next page music.playef(Sound_VIRIDIAN); game.translator_credits_pagenum = 0; + game.current_credits_list_index = 0; game.createmenu(Menu::credits_localisations_translations, true); map.nexttowercolour(); break;