(svn r20775) -Fix (r20771): the group's vehicle lists weren't properly populated

This commit is contained in:
rubidium
2010-09-09 14:24:42 +00:00
parent 86a3fbb287
commit 1fe70616a8

View File

@@ -190,6 +190,9 @@ public:
this->vehicles.SetListing(*this->sorting); this->vehicles.SetListing(*this->sorting);
this->vehicles.ForceRebuild(); this->vehicles.ForceRebuild();
this->vehicles.NeedResort(); this->vehicles.NeedResort();
vli.type = IsAllGroupID(this->group_sel) ? VL_STANDARD : VL_GROUP_LIST;
vli.index = group_sel;
this->BuildVehicleList(vli); this->BuildVehicleList(vli);
this->SortVehicleList(); this->SortVehicleList();
@@ -303,6 +306,8 @@ public:
/* If we select the all vehicles, this->list will contain all vehicles of the owner /* 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 */ * 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->BuildVehicleList(vli);
this->SortVehicleList(); this->SortVehicleList();