(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 64d9a36dc0
commit 976ee2a91e
1 changed files with 5 additions and 0 deletions

View File

@ -190,6 +190,9 @@ public:
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 @@ public:
/* 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();