From 117a45422ad343a08c58cc79580560914041197c Mon Sep 17 00:00:00 2001 From: toaster Date: Sat, 3 Jun 2023 14:02:46 +0100 Subject: [PATCH] G_SaveGameData: Fix an issue where if you somehow saved a skin with no wins as the most recent skin on GP, it'd be assigned to the first skin with any wins on your gamedata on the next load, instead of the correct question mark. --- src/g_game.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/g_game.c b/src/g_game.c index f65f0ba6d..a74eed966 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -5530,7 +5530,10 @@ void G_SaveGameData(void) for (i = 0; i < numskins; i++) { if (skins[i].records.wins == 0) + { + skins[i].records._saveid = UINT32_MAX; continue; + } WRITESTRINGN(save.p, skins[i].name, SKINNAMESIZE);