1
0
Fork 0

Fix edf9f597ec: Screenshot with non-wallclock date saved with wrong filename.

pull/13721/head
Peter Nelson 2025-03-03 21:02:25 +00:00
parent 6d1d320a7d
commit 4640102e50
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
1 changed files with 1 additions and 1 deletions

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;
}