From 315c0e91ad2c42d2f243e5d1d29c77dc9f2234dc Mon Sep 17 00:00:00 2001 From: Ted John Date: Sun, 23 Oct 2016 17:49:21 +0100 Subject: [PATCH] Fix #4574: Changing the game language makes the scenery window wonky --- src/object/ObjectManager.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/object/ObjectManager.cpp b/src/object/ObjectManager.cpp index 0f083c0d22..41346e968c 100644 --- a/src/object/ObjectManager.cpp +++ b/src/object/ObjectManager.cpp @@ -198,6 +198,9 @@ public: loadedObject->Load(); } } + UpdateLegacyLoadedObjectList(); + UpdateSceneryGroupIndexes(); + reset_type_to_ride_entry_index_map(); } } @@ -386,6 +389,10 @@ private: } } } + + // HACK Scenery window will lose its tabs after changing the the scenery group indexing + // for now just close it, but it will be better to later tell it to invalidate the tabs + window_close_by_class(WC_SCENERY); } }