(svn r13175) -Fix (r13174): sorting criteria and order for industry directory was always reset on window opening

This commit is contained in:
glx 2008-05-19 01:10:52 +00:00
parent 17a1873843
commit fa72187bbf
1 changed files with 2 additions and 0 deletions

View File

@ -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;