mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-29 16:40:25 +01:00
Fix: Error message not set when unable load an old save. (#13106)
This commit is contained in:
parent
1b6a6f1cd2
commit
13da98dab8
@ -269,6 +269,7 @@ bool LoadOldSaveGame(const std::string &file)
|
|||||||
|
|
||||||
if (!ls.file.has_value()) {
|
if (!ls.file.has_value()) {
|
||||||
Debug(oldloader, 0, "Cannot open file '{}'", file);
|
Debug(oldloader, 0, "Cannot open file '{}'", file);
|
||||||
|
SetSaveLoadError(STR_GAME_SAVELOAD_ERROR_FILE_NOT_READABLE);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user