summaryrefslogtreecommitdiff
path: root/src/group_gui.cpp
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2008-06-19 19:58:30 +0000
committerskidd13 <skidd13@openttd.org>2008-06-19 19:58:30 +0000
commit32c2041f891b451d66a72871986871c46b6f8263 (patch)
tree37921dafcbd80aaa6a3e71f4199e0ed81ee3c89e /src/group_gui.cpp
parent4cc9439d6541d1c2e0e6f40eb9e59b26826bd145 (diff)
downloadopenttd-32c2041f891b451d66a72871986871c46b6f8263.tar.xz
(svn r13587) -Codechange: make some globals members of VehicleListBase since they are used as such
-Cleanup: some small things referring the change
Diffstat (limited to 'src/group_gui.cpp')
-rw-r--r--src/group_gui.cpp4
1 files changed, 2 insertions, 2 deletions
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