1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Fix #13226: No error is shown when attempting to load a corrupted save

This commit is contained in:
Keith Stellyes
2020-10-18 10:54:26 -07:00
committed by GitHub
parent 6c687f576d
commit 41c0395adb
2 changed files with 6 additions and 1 deletions

View File

@@ -33,6 +33,7 @@
- Fix: [#13129] Missing error message when waiting for train to leave station on the ride measurements graph.
- Fix: [#13138] Fix logical sorting of list windows.
- Fix: [#13158] Cursors are drawn incorrectly in text input fields.
- Fix: [#13226] No error is shown when attempting to load a corrupted save.
- Improved: [#13023] Made add_news_item console command last argument, assoc, optional.
- Improved: [#13098] Improvements to the maze construction window user interface
- Improved: [#13125] Selecting the RCT2 files now uses localised dialogs.

View File

@@ -562,7 +562,11 @@ namespace OpenRCT2
else
{
auto fs = FileStream(path, FILE_MODE_OPEN);
return LoadParkFromStream(&fs, path, loadTitleScreenOnFail);
if (!LoadParkFromStream(&fs, path, loadTitleScreenOnFail))
{
throw std::runtime_error("Failed to load park");
}
return true;
}
}
catch (const std::exception& e)