summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;