diff options
author | glx <glx@openttd.org> | 2008-05-19 01:10:52 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2008-05-19 01:10:52 +0000 |
commit | 4e11e0785ac2e78f523738f013f7ebe8cfa1d0c5 (patch) | |
tree | 6c2e1fa9794c1b27a5e8d1927fbc38641945c12e | |
parent | dc1c529a31c927071a6954119fc8b58b651285ac (diff) | |
download | openttd-4e11e0785ac2e78f523738f013f7ebe8cfa1d0c5.tar.xz |
(svn r13175) -Fix (r13174): sorting criteria and order for industry directory was always reset on window opening
-rw-r--r-- | src/industry_gui.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index 70b8e4fb2..1d8a264d3 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -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; |