1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Fix #22333: Tile inspector closes other tool windows (#22341)

This commit is contained in:
mrmbernardi
2024-07-20 23:14:37 +10:00
committed by GitHub
parent 3467760ef8
commit f9a7d98b21
2 changed files with 3 additions and 1 deletions

View File

@@ -15,6 +15,7 @@
- Fix: [#22284] Unrated rides cause high amount of nausea.
- Fix: [#22304] Graphs don't draw lines on the left edge of the screen.
- Fix: [#22318] Water sparkles are missing if transparent water is enabled without RCT1 linked.
- Fix: [#22333] Tile inspector closes other tool windows.
0.4.12 (2024-07-07)
------------------------------------------------------------------------

View File

@@ -721,7 +721,8 @@ static uint64_t PageDisabledWidgets[] = {
void OnClose() override
{
ToolCancel();
if (gCurrentToolWidget.window_classification == WindowClass::TileInspector)
ToolCancel();
TileElement* const elem = OpenRCT2::TileInspector::GetSelectedElement();
if (elem != nullptr)
{