fixed not creating user level set
authorHolger Schemel <info@artsoft.org>
Sat, 11 Jun 2022 12:16:44 +0000 (14:16 +0200)
committerHolger Schemel <info@artsoft.org>
Sat, 11 Jun 2022 12:16:44 +0000 (14:16 +0200)
src/libgame/setup.c

index 1c3a5dc73ea3429abc4b7f16e84bf2fefe5a36ac..acee4a9fd2634ddb52320b2a9df1722a28052685 100644 (file)
@@ -1371,10 +1371,13 @@ void InitUserLevelDirectory(char *level_subdir)
   {
     createDirectory(getMainUserGameDataDir(), "main user data");
     createDirectory(getUserLevelDir(NULL), "main user level");
-    createDirectory(getUserLevelDir(level_subdir), "user level");
 
     if (setup.internal.create_user_levelset)
+    {
+      createDirectory(getUserLevelDir(level_subdir), "user level");
+
       SaveUserLevelInfo();
+    }
   }
 }