Tracrestrict: Fix non-train slot windows allowing unusable sort modes

This commit is contained in:
Jonathan G Rennison
2023-08-30 23:22:37 +01:00
parent a29c01493d
commit 672382f960

View File

@@ -4027,7 +4027,8 @@ public:
break;
case WID_TRSL_SORT_BY_DROPDOWN: // Select sorting criteria dropdown menu
ShowDropDownMenu(this, this->vehicle_group_none_sorter_names, this->vehgroups.SortType(), WID_TRSL_SORT_BY_DROPDOWN, 0, 0);
ShowDropDownMenu(this, this->vehicle_group_none_sorter_names, this->vehgroups.SortType(), WID_TRSL_SORT_BY_DROPDOWN, 0,
this->GetSorterDisableMask(this->vli.vtype), 0, DDSF_LOST_FOCUS);
return;
case WID_TRSL_FILTER_BY_CARGO: // Cargo filter dropdown