fixed setting score info to defaults
authorHolger Schemel <info@artsoft.org>
Sun, 6 Mar 2022 23:47:41 +0000 (00:47 +0100)
committerHolger Schemel <info@artsoft.org>
Sun, 6 Mar 2022 23:47:41 +0000 (00:47 +0100)
src/files.c

index 7902221e0c9d4e3513cb9587826c989fff307092..8a8f71f5ff0cd0035a53dd89ca8f2c94cc8a512b 100644 (file)
@@ -8650,6 +8650,13 @@ static void setScoreInfoToDefaultsExt(struct ScoreInfo *scores)
     strcpy(scores->entry[i].name, EMPTY_PLAYER_NAME);
     scores->entry[i].score = 0;
     scores->entry[i].time = 0;
+
+    scores->entry[i].id = -1;
+    strcpy(scores->entry[i].tape_date,    UNKNOWN_NAME);
+    strcpy(scores->entry[i].platform,     UNKNOWN_NAME);
+    strcpy(scores->entry[i].version,      UNKNOWN_NAME);
+    strcpy(scores->entry[i].country_name, UNKNOWN_NAME);
+    strcpy(scores->entry[i].country_code, "??");
   }
 
   scores->num_entries = 0;