1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Fix #9859. Actually keep the loading of a track design with try.

Mistake whilst implementing track desing importer and changing where code that could throw.
This commit is contained in:
duncanspumpkin
2019-08-15 18:41:50 +01:00
parent 3da62e4697
commit 5a611f49d6

View File

@@ -568,10 +568,10 @@ rct_string_id TrackDesign::CreateTrackDesignScenery()
std::unique_ptr<TrackDesign> track_design_open(const utf8* path)
{
auto trackImporter = TrackImporter::Create(path);
trackImporter->Load(path);
try
{
auto trackImporter = TrackImporter::Create(path);
trackImporter->Load(path);
return trackImporter->Import();
}
catch (const std::exception& e)