summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--industry_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/industry_gui.c b/industry_gui.c
index fcb85dd33..f13b2ca62 100644
--- a/industry_gui.c
+++ b/industry_gui.c
@@ -578,7 +578,7 @@ static void IndustryDirectoryWndProc(Window *w, WindowEvent *e)
MakeSortedIndustryList();
}
- w->vscroll.count = _num_industry_sort;
+ SetVScrollCount(w, _num_industry_sort);
DrawWindowWidgets(w);
DoDrawString(_industry_sort_order & 1 ? "\xAA" : "\xA0", _indicator_positions[_industry_sort_order>>1], 15, 0x10);