Fix #4574: Changing the game language makes the scenery window wonky

This commit is contained in:
Ted John 2016-10-23 17:49:21 +01:00
parent 94a9c94c1f
commit 315c0e91ad
1 changed files with 7 additions and 0 deletions

View File

@ -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);
}
}