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 | fa72187bbf5dbb990305abf9b068dafb9353f11b (patch) | |
tree | 6c2e1fa9794c1b27a5e8d1927fbc38641945c12e /src | |
parent | 17a18738432eb45c447496de241138ddaa06a567 (diff) | |
download | openttd-fa72187bbf5dbb990305abf9b068dafb9353f11b.tar.xz |
(svn r13175) -Fix (r13174): sorting criteria and order for industry directory was always reset on window opening
Diffstat (limited to 'src')
-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; |