save vanilla save when switching to modified savegame

also add check so we dont rerun this everytime setgamemodified is called
This commit is contained in:
Alug committed 2025-01-13 16:41:45 +01:00
1 parent 26b8b126d2
commit a51540fe06
1 file changed
+6
+6
View File
@@ -613,6 +613,12 @@ static void G_SetSaveGameModified(void)
{
size_t filenamelen;
if (savemoddata)
return;
// save vanilla data just to be sure
G_SaveGameData(true);
savemoddata = true;
strlcpy(gamedatafilename, "modkartdata.dat", sizeof (gamedatafilename));