fixed saving already erased score tape
[rocksndiamonds.git] / src / game.c
index 78101becf1c76f8e48e12a5ef252c4344c753350..b85dbcae9861dfcae7df2d211ed5a51e2aeba768 100644 (file)
@@ -5004,6 +5004,9 @@ void GameEnd(void)
     SaveLevelSetup_SeriesInfo();
   }
 
+  // save score and score tape before potentially erasing tape below
+  highlight_position = NewHighScore(last_level_nr);
+
   if (setup.increment_levels &&
       level_nr < leveldir_current->last_level &&
       !network_playing)
@@ -5019,8 +5022,6 @@ void GameEnd(void)
     }
   }
 
-  highlight_position = NewHighScore(last_level_nr);
-
   if (highlight_position >= 0 && setup.show_scores_after_game)
   {
     SetGameStatus(GAME_MODE_SCORES);