fixed crash bug caused by accessing undefined sorting name
authorHolger Schemel <info@artsoft.org>
Wed, 17 Feb 2021 12:41:06 +0000 (13:41 +0100)
committerHolger Schemel <info@artsoft.org>
Wed, 17 Feb 2021 12:41:06 +0000 (13:41 +0100)
src/libgame/setup.c

index dc470a814a741ae88722af47959c47f23489492c..7b3168abeea510bc13a094490bef0404a2c381e8 100644 (file)
@@ -4511,6 +4511,7 @@ static void InitLastPlayedLevels_ParentNode(void)
 
   setString(&leveldir_new->identifier, TOKEN_STR_LAST_LEVEL_SERIES);
   setString(&leveldir_new->name, "<< (last played level sets)");
+  setString(&leveldir_new->name_sorting, leveldir_new->name);
 
   pushTreeInfo(leveldir_top, leveldir_new);