Codechange: Don't access cargo filter before it is initialized. (#11321)
The cargo filter list is initialized during window OnInit, but the first build of the filtered list occurred before this.
This commit is contained in:
@@ -358,9 +358,6 @@ public:
|
||||
this->group_rename = INVALID_GROUP;
|
||||
this->group_over = INVALID_GROUP;
|
||||
|
||||
this->BuildVehicleList();
|
||||
this->SortVehicleList();
|
||||
|
||||
this->groups.ForceRebuild();
|
||||
this->groups.NeedResort();
|
||||
this->BuildGroupList(vli.company);
|
||||
@@ -377,6 +374,9 @@ public:
|
||||
|
||||
this->FinishInitNested(window_number);
|
||||
this->owner = vli.company;
|
||||
|
||||
this->BuildVehicleList();
|
||||
this->SortVehicleList();
|
||||
}
|
||||
|
||||
~VehicleGroupWindow()
|
||||
|
Reference in New Issue
Block a user