forked from mirror/OpenTTD
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:
@@ -1624,10 +1624,11 @@ public:
|
||||
this->industries.SetListing(this->last_sorting);
|
||||
this->industries.SetSortFuncs(IndustryDirectoryWindow::sorter_funcs);
|
||||
this->industries.ForceRebuild();
|
||||
this->BuildSortIndustriesList();
|
||||
|
||||
this->FinishInitNested(0);
|
||||
|
||||
this->BuildSortIndustriesList();
|
||||
|
||||
this->querystrings[WID_ID_FILTER] = &this->industry_editbox;
|
||||
this->industry_editbox.cancel_button = QueryString::ACTION_CLEAR;
|
||||
}
|
||||
|
Reference in New Issue
Block a user