From ec261a64568b2e189b849f6f79d7604c5684806b Mon Sep 17 00:00:00 2001 From: skidd13 Date: Thu, 19 Jun 2008 19:58:30 +0000 Subject: (svn r13587) -Codechange: make some globals members of VehicleListBase since they are used as such -Cleanup: some small things referring the change --- src/group_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/group_gui.cpp') diff --git a/src/group_gui.cpp b/src/group_gui.cpp index 32fa91943..2df9bb1c4 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -385,7 +385,7 @@ public: } /* Set text of sort by dropdown */ - this->widget[GRP_WIDGET_SORT_BY_DROPDOWN].data = _vehicle_sort_listing[this->vehicles.SortType()]; + this->widget[GRP_WIDGET_SORT_BY_DROPDOWN].data = this->vehicle_sorter_names[this->vehicles.SortType()]; this->DrawWidgets(); @@ -478,7 +478,7 @@ public: break; case GRP_WIDGET_SORT_BY_DROPDOWN: // Select sorting criteria dropdown menu - ShowDropDownMenu(this, _vehicle_sort_listing, this->vehicles.SortType(), GRP_WIDGET_SORT_BY_DROPDOWN, 0, (this->vehicle_type == VEH_TRAIN || this->vehicle_type == VEH_ROAD) ? 0 : (1 << 10)); + ShowDropDownMenu(this, this->vehicle_sorter_names, this->vehicles.SortType(), GRP_WIDGET_SORT_BY_DROPDOWN, 0, (this->vehicle_type == VEH_TRAIN || this->vehicle_type == VEH_ROAD) ? 0 : (1 << 10)); return; case GRP_WIDGET_ALL_VEHICLES: // All vehicles button -- cgit v1.2.3-54-g00ecf