diff --git a/src/openrct2-ui/windows/EditorObjectSelection.cpp b/src/openrct2-ui/windows/EditorObjectSelection.cpp index 2c8ea108b1..4b0e51ea84 100644 --- a/src/openrct2-ui/windows/EditorObjectSelection.cpp +++ b/src/openrct2-ui/windows/EditorObjectSelection.cpp @@ -599,12 +599,14 @@ public: if (!objectSelectResult.Successful) return; - // Close any other open windows such as options/colour schemes to prevent a crash. - WindowCloseAll(); - // WindowClose(*w); + auto& objRepository = OpenRCT2::GetContext()->GetObjectRepository(); + _loadedObject = objRepository.LoadObject(listItem->repositoryItem); + auto& objManager = OpenRCT2::GetContext()->GetObjectManager(); + objManager.LoadObject(_loadedObject.get()->GetIdentifier()); // This function calls window_track_list_open ManageTracks(); + Close(); return; }