1
0
Fork 0

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

pull/13732/head
Peter Nelson 2025-03-03 21:44:48 +00:00 committed by GitHub
parent deb3755acb
commit 94c6221dff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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;
}