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