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:
committed by
GitHub
parent
a3ce24658c
commit
1a8660d59d
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user