fixed bug with using same player UUID for new player with same setup values
authorHolger Schemel <info@artsoft.org>
Wed, 29 Sep 2021 22:47:41 +0000 (00:47 +0200)
committerHolger Schemel <info@artsoft.org>
Wed, 29 Sep 2021 22:47:41 +0000 (00:47 +0200)
src/screens.c

index d648b00e914a95b3a618cf3ce23b0c1a891ca85f..0cb8a2b017ab8d05e10f0f757a353c17d4d158ab 100644 (file)
@@ -4360,6 +4360,8 @@ static void setTypeNameValues(char *name, struct TextPosInfo *pos,
     if (!create_user ||
        !Request("Use current setup values for the new player?", REQ_ASK))
       LoadSetup();
+    else
+      setup.player_uuid = getStringCopy(getUUID());
   }
 
   char *setup_filename = getSetupFilename();