1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-01 02:49:10 +00:00

Fix edf9f597ec: Screenshot with non-wallclock date saved with wrong filename. (#13721)

This commit is contained in:
2025-03-03 21:44:48 +00:00
committed by GitHub
parent deb3755acb
commit 94c6221dff

View File

@@ -3348,7 +3348,7 @@ std::string GenerateDefaultSaveName()
}
/* Get the correct string (special string for when there's not company) */
std::string filename = GetStringWithArgs(!Company::IsValidID(cid) ? STR_SAVEGAME_NAME_SPECTATOR : STR_SAVEGAME_NAME_DEFAULT, {params.begin(), it});
std::string filename = GetStringWithArgs(!Company::IsValidID(cid) ? STR_SAVEGAME_NAME_SPECTATOR : STR_SAVEGAME_NAME_DEFAULT, params);
SanitizeFilename(filename);
return filename;
}