forked from rosebudai/OpenRCT2-Web
Prevent out of bounds access, prevents assert on debug builds
This commit is contained in:
1 file changed
+1
-1
@@ -961,7 +961,7 @@ namespace OpenRCT2
|
||||
{
|
||||
windowClass = w->classification;
|
||||
windowNumber = w->number;
|
||||
widget = &w->widgets[widgetIndex];
|
||||
widget = widgetIndex == kWidgetIndexNull ? nullptr : &w->widgets[widgetIndex];
|
||||
}
|
||||
|
||||
InputWidgetOverChangeCheck(windowClass, windowNumber, widgetIndex);
|
||||
|
||||
Reference in new issue
Block a user