summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-09-10 13:34:47 +0000
committeryexo <yexo@openttd.org>2010-09-10 13:34:47 +0000
commitfa8bd8303654daed9310c896141b2a87b1c11e3e (patch)
treed67491ec28a955a6f623d006e996f9475e7944d4 /src
parent06678a8ac2ae5be268d98bd5d77cbd37942d9b09 (diff)
downloadopenttd-fa8bd8303654daed9310c896141b2a87b1c11e3e.tar.xz
(svn r20780) -Fix (r20772): group gui only worked properly for the first company
Diffstat (limited to 'src')
-rw-r--r--src/group_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp
index 906ca5c4e..da3eb452a 100644
--- a/src/group_gui.cpp
+++ b/src/group_gui.cpp
@@ -191,9 +191,10 @@ public:
this->BuildVehicleList();
this->SortVehicleList();
+ this->owner = vli.company;
this->groups.ForceRebuild();
this->groups.NeedResort();
- this->BuildGroupList(owner);
+ this->BuildGroupList(this->owner);
this->groups.Sort(&GroupNameSorter);
this->GetWidget<NWidgetCore>(GRP_WIDGET_CAPTION)->widget_data = STR_VEHICLE_LIST_TRAIN_CAPTION + this->vli.vtype;
@@ -205,7 +206,6 @@ public:
this->GetWidget<NWidgetCore>(GRP_WIDGET_REPLACE_PROTECTION)->widget_data += this->vli.vtype;
this->FinishInitNested(desc, window_number);
- this->owner = vli.company;
}
~VehicleGroupWindow()