changeset 16082:f12dbf5b5fa0 draft

(svn r20775) -Fix (r20771): the group's vehicle lists weren't properly populated
author rubidium <rubidium@openttd.org>
date Thu, 09 Sep 2010 14:24:42 +0000
parents 8515224705be
children 99c9f886233e
files src/group_gui.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/group_gui.cpp
+++ b/src/group_gui.cpp
@@ -190,6 +190,9 @@
 		this->vehicles.SetListing(*this->sorting);
 		this->vehicles.ForceRebuild();
 		this->vehicles.NeedResort();
+
+		vli.type = IsAllGroupID(this->group_sel) ? VL_STANDARD : VL_GROUP_LIST;
+		vli.index = group_sel;
 		this->BuildVehicleList(vli);
 		this->SortVehicleList();
 
@@ -303,6 +306,8 @@
 
 		/* If we select the all vehicles, this->list will contain all vehicles of the owner
 		 * else this->list will contain all vehicles which belong to the selected group */
+		vli.type = IsAllGroupID(this->group_sel) ? VL_STANDARD : VL_GROUP_LIST;
+		vli.index = group_sel;
 		this->BuildVehicleList(vli);
 		this->SortVehicleList();