mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
Fix clear scenery window closing immediately (#22442)
This commit is contained in:
@@ -1024,7 +1024,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
{
|
||||
if (!(InputTestFlag(INPUT_FLAG_TOOL_ACTIVE)))
|
||||
return false;
|
||||
if (gCurrentToolWidget.window_classification != WindowClass::TopToolbar)
|
||||
if (gCurrentToolWidget.window_classification != WindowClass::ClearScenery)
|
||||
return false;
|
||||
if (gCurrentToolWidget.widget_index != WIDX_CLEAR_SCENERY)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user