fixed bug with wrong level number in hall of fame after winning a game
authorHolger Schemel <info@artsoft.org>
Wed, 23 Feb 2022 23:32:33 +0000 (00:32 +0100)
committerHolger Schemel <info@artsoft.org>
Wed, 23 Feb 2022 23:32:55 +0000 (00:32 +0100)
src/screens.c

index 62497e67dca4ef1e84cbde9509469581db4807d9..a76393cb76280a7c54eb03e82b709201a13dad4f 100644 (file)
@@ -5807,7 +5807,7 @@ static char *getHallOfFameScoreText(int nr)
 
 static void HandleHallOfFame_SelectLevel(int step, int direction)
 {
-  int old_level_nr = level_nr;
+  int old_level_nr = scores.last_level_nr;
   int new_level_nr = old_level_nr + step * direction;
 
   if (new_level_nr < leveldir_current->first_level)