From 99a186081226e3da6107f3df59c7d8ad1b3d99ec Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sat, 12 Mar 2022 12:41:13 +0100 Subject: [PATCH] fixed cursor position on high score screen after leaving score info page --- src/screens.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/screens.c b/src/screens.c index c036c5a2..c47d19f2 100644 --- a/src/screens.c +++ b/src/screens.c @@ -5114,8 +5114,13 @@ static void drawChooseTreeScreen_Scores_NotAvailable(void) static TreeInfo *setHallOfFameActiveEntry(TreeInfo **ti_ptr) { + int score_pos = scores.last_added; + + if (game_status_last_screen == GAME_MODE_SCOREINFO) + score_pos = scores.last_entry_nr; + // set current tree entry to last added score entry - *ti_ptr = getTreeInfoFromIdentifier(score_entries, i_to_a(scores.last_added)); + *ti_ptr = getTreeInfoFromIdentifier(score_entries, i_to_a(score_pos)); // if that fails, set current tree entry to first entry (back link) if (*ti_ptr == NULL) -- 2.34.1