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.

This commit is contained in:
toaster 2023-06-03 14:02:46 +01:00
parent b195d43577
commit 117a45422a

View file

@ -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);