summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();