mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-31 19:33:34 +00:00
(svn r13175) -Fix (r13174): sorting criteria and order for industry directory was always reset on window opening
This commit is contained in:
parent
17a1873843
commit
fa72187bbf
@ -925,6 +925,8 @@ struct IndustryDirectoryWindow : public Window, public GUIIndustryList {
|
||||
this->sort_type = widget - IDW_SORTBYNAME;
|
||||
this->flags &= ~VL_DESC;
|
||||
}
|
||||
industry_sort.criteria = this->sort_type;
|
||||
industry_sort.order = HasBit(this->flags, 0);
|
||||
this->flags |= VL_RESORT;
|
||||
this->SetDirty();
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user