From 976ee2a91e9b3ea10105c817c9b299cdfe4e5f8b Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 9 Sep 2010 14:24:42 +0000 Subject: (svn r20775) -Fix (r20771): the group's vehicle lists weren't properly populated --- src/group_gui.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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(); -- cgit v1.2.3-70-g09d2