1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 14:24:33 +01:00

Pass window reference to tool_set (#17625)

This commit is contained in:
Michael Steenbeek
2022-07-28 03:22:22 +02:00
committed by GitHub
parent a3ce24658c
commit 1a8660d59d
19 changed files with 35 additions and 35 deletions

View File

@@ -268,7 +268,7 @@ namespace OpenRCT2::Scripting
// prevents abort from being called.
rct_widgetindex widgetIndex = -2;
tool_cancel();
tool_set(toolbarWindow, widgetIndex, static_cast<Tool>(customTool.Cursor));
tool_set(*toolbarWindow, widgetIndex, static_cast<Tool>(customTool.Cursor));
ActiveCustomTool = std::move(customTool);
ActiveCustomTool->Start();
}