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:44:06 +01:00
1 parent bb7c217ccc
commit e2e356d0c2
1 file changed
+6
+6
View File
@@ -604,6 +604,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));