Fix disable mask for sorter drop-down being mis-aligned.

Sort by length was incorrectly available, and crashed for non ground
vehicles.
This commit is contained in:
Jonathan G Rennison
2017-02-06 18:45:14 +00:00
parent 529aafd257
commit 6d99162df9
3 changed files with 4 additions and 2 deletions

View File

@@ -586,7 +586,8 @@ public:
break;
case WID_GL_SORT_BY_DROPDOWN: // Select sorting criteria dropdown menu
ShowDropDownMenu(this, this->vehicle_sorter_names, this->vehicles.SortType(), WID_GL_SORT_BY_DROPDOWN, 0, (this->vli.vtype == VEH_TRAIN || this->vli.vtype == VEH_ROAD) ? 0 : (1 << 10));
ShowDropDownMenu(this, this->vehicle_sorter_names, this->vehicles.SortType(), WID_GL_SORT_BY_DROPDOWN, 0,
(this->vli.vtype == VEH_TRAIN || this->vli.vtype == VEH_ROAD) ? 0 : this->vehicle_sorter_non_ground_veh_disable_mask);
return;
case WID_GL_ALL_VEHICLES: // All vehicles button