summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2008-05-19 01:10:52 +0000
committerglx <glx@openttd.org>2008-05-19 01:10:52 +0000
commitfa72187bbf5dbb990305abf9b068dafb9353f11b (patch)
tree6c2e1fa9794c1b27a5e8d1927fbc38641945c12e /src
parent17a18738432eb45c447496de241138ddaa06a567 (diff)
downloadopenttd-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.cpp2
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;