mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Fix #23707: Crash when plugins use a custom tool
This commit is contained in:
@@ -1252,7 +1252,10 @@ public:
|
||||
return;
|
||||
}
|
||||
|
||||
assert(widgetIndex < w.widgets.size());
|
||||
if (static_cast<size_t>(widgetIndex) >= w.widgets.size())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
const auto& widget = w.widgets[widgetIndex];
|
||||
if (widget.left == -2)
|
||||
|
||||
Reference in New Issue
Block a user