summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-09-09 14:24:42 +0000
committerrubidium <rubidium@openttd.org>2010-09-09 14:24:42 +0000
commit976ee2a91e9b3ea10105c817c9b299cdfe4e5f8b (patch)
tree2467f3680cc02fcbcc77fcfdc813de867a3bb6e8 /src
parent64d9a36dc08d8a6113af25d08446ac47afc4e18e (diff)
downloadopenttd-976ee2a91e9b3ea10105c817c9b299cdfe4e5f8b.tar.xz
(svn r20775) -Fix (r20771): the group's vehicle lists weren't properly populated
Diffstat (limited to 'src')
-rw-r--r--src/group_gui.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp
index 9f3ec7ef6..eb94488a5 100644
--- a/src/group_gui.cpp
+++ b/src/group_gui.cpp
@@ -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();