forked from rosebudai/OpenRCT2-Web
Close #13625: Refactor TOOL_IDX to use strong enum
This commit is contained in:
1 parent
d6ebdded6b
commit
00483df2f2
22 files changed
+64
-65
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user