Close #13625: Refactor TOOL_IDX to use strong enum

This commit is contained in:
Tulio Leao committed 2020-12-23 20:07:54 -03:00
1 parent d6ebdded6b
commit 00483df2f2
22 files changed
+64 -65

No files matched your search

+1 -1
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();
}