Changeset - r16078:ae1a484f9640
[Not reviewed]
master
0 1 0
yexo - 14 years ago 2010-09-10 13:50:47
yexo@openttd.org
(svn r20781) -Fix (r20780): FinishInitNested reset this->owner, so set it afterwards
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/group_gui.cpp
Show inline comments
 
@@ -191,10 +191,9 @@ public:
 
		this->BuildVehicleList();
 
		this->SortVehicleList();
 

	
 
		this->owner = vli.company;
 
		this->groups.ForceRebuild();
 
		this->groups.NeedResort();
 
		this->BuildGroupList(this->owner);
 
		this->BuildGroupList(vli.company);
 
		this->groups.Sort(&GroupNameSorter);
 

	
 
		this->GetWidget<NWidgetCore>(GRP_WIDGET_CAPTION)->widget_data = STR_VEHICLE_LIST_TRAIN_CAPTION + this->vli.vtype;
 
@@ -206,6 +205,7 @@ public:
 
		this->GetWidget<NWidgetCore>(GRP_WIDGET_REPLACE_PROTECTION)->widget_data += this->vli.vtype;
 

	
 
		this->FinishInitNested(desc, window_number);
 
		this->owner = vli.company;
 
	}
 

	
 
	~VehicleGroupWindow()
 
@@ -301,7 +301,7 @@ public:
 
		this->BuildVehicleList();
 
		this->SortVehicleList();
 

	
 
		this->BuildGroupList(owner);
 
		this->BuildGroupList(this->owner);
 
		this->groups.Sort(&GroupNameSorter);
 

	
 
		this->group_sb->SetCount(this->groups.Length());
0 comments (0 inline, 0 general)