mirror of https://github.com/OpenTTD/OpenTTD
(svn r20775) -Fix (r20771): the group's vehicle lists weren't properly populated
parent
64d9a36dc0
commit
976ee2a91e
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue