From 5a611f49d6b022550cea6727aee5f4581ea558d1 Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Thu, 15 Aug 2019 18:41:50 +0100 Subject: [PATCH] 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. --- src/openrct2/ride/TrackDesign.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/ride/TrackDesign.cpp b/src/openrct2/ride/TrackDesign.cpp index d8cbb9727f..2a690c1365 100644 --- a/src/openrct2/ride/TrackDesign.cpp +++ b/src/openrct2/ride/TrackDesign.cpp @@ -568,10 +568,10 @@ rct_string_id TrackDesign::CreateTrackDesignScenery() std::unique_ptr 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)