1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 22:13:07 +01:00

Close #13625: Refactor TOOL_IDX to use strong enum

This commit is contained in:
Tulio Leao
2020-12-23 01:11:15 -03:00
parent d6ebdded6b
commit 00483df2f2
22 changed files with 64 additions and 65 deletions

View File

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