industry_gui.c
changeset 1666 b36927825adb
parent 1388 4bfe9ccd4344
child 1786 a54634efeb98
--- a/industry_gui.c	Fri Apr 08 22:50:22 2005 +0000
+++ b/industry_gui.c	Fri Apr 08 23:46:18 2005 +0000
@@ -578,7 +578,7 @@
 			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);