mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r20780) -Fix (r20772): group gui only worked properly for the first company
This commit is contained in:
parent
06678a8ac2
commit
fa8bd83036
@ -191,9 +191,10 @@ public:
|
|||||||
this->BuildVehicleList();
|
this->BuildVehicleList();
|
||||||
this->SortVehicleList();
|
this->SortVehicleList();
|
||||||
|
|
||||||
|
this->owner = vli.company;
|
||||||
this->groups.ForceRebuild();
|
this->groups.ForceRebuild();
|
||||||
this->groups.NeedResort();
|
this->groups.NeedResort();
|
||||||
this->BuildGroupList(owner);
|
this->BuildGroupList(this->owner);
|
||||||
this->groups.Sort(&GroupNameSorter);
|
this->groups.Sort(&GroupNameSorter);
|
||||||
|
|
||||||
this->GetWidget<NWidgetCore>(GRP_WIDGET_CAPTION)->widget_data = STR_VEHICLE_LIST_TRAIN_CAPTION + this->vli.vtype;
|
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->GetWidget<NWidgetCore>(GRP_WIDGET_REPLACE_PROTECTION)->widget_data += this->vli.vtype;
|
||||||
|
|
||||||
this->FinishInitNested(desc, window_number);
|
this->FinishInitNested(desc, window_number);
|
||||||
this->owner = vli.company;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
~VehicleGroupWindow()
|
~VehicleGroupWindow()
|
||||||
|
Loading…
Reference in New Issue
Block a user