1
0
Fork 0

Fix: Error message not set when unable load an old save.

pull/13106/head
Peter Nelson 2024-11-20 17:45:37 +00:00
parent 1b6a6f1cd2
commit c078b58b22
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
1 changed files with 1 additions and 0 deletions

View File

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