fixed bug with resetting level set handicap when using "last played" menu
authorHolger Schemel <info@artsoft.org>
Tue, 26 Jul 2022 18:50:34 +0000 (20:50 +0200)
committerHolger Schemel <info@artsoft.org>
Tue, 26 Jul 2022 18:54:49 +0000 (20:54 +0200)
src/screens.c

index 809d7c2d6c738811a0b58933d3b50a145852e884..41cde998f09bb12e1488f56f0e08cee0735daf3e 100644 (file)
@@ -1729,6 +1729,11 @@ void DrawMainMenu(void)
 
   if (leveldir_current != leveldir_last_valid)
   {
+    // level setup config may have been loaded to "last played" tree node copy,
+    // but "leveldir_current" now points to the "original" level set tree node,
+    // in which case "handicap_level" may still default to the first level
+    LoadLevelSetup_SeriesInfo();
+
     UpdateLastPlayedLevels_TreeInfo();
 
     levelset_has_changed = TRUE;