1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-28 17:09:10 +00:00

Fix #10880: Crash in object window due to incorrect parameter order. (#10881)

This commit is contained in:
2023-05-26 22:29:52 +01:00
committed by GitHub
parent 876871157f
commit 8ea9c1a133

View File

@@ -506,7 +506,7 @@ public:
{
switch (GB(widget, 0, 16)) {
case WID_BO_CLASS_LIST: {
auto it = this->vscroll->GetScrolledItemFromWidget(this->object_classes, widget, this, pt.y);
auto it = this->vscroll->GetScrolledItemFromWidget(this->object_classes, pt.y, this, widget);
if (it == this->object_classes.end()) break;
this->SelectOtherClass(*it);