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:
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user