mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-31 00:06:45 +01:00
Fix edf9f597ec
: Screenshot with non-wallclock date saved with wrong filename. (#13721)
This commit is contained in:
parent
deb3755acb
commit
94c6221dff
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user