summaryrefslogtreecommitdiff
path: root/industry_gui.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2005-04-08 23:46:18 +0000
committerbjarni <bjarni@openttd.org>2005-04-08 23:46:18 +0000
commit4af271c49416e12f106b9f9fbbf51b6ac459052d (patch)
tree7629672a5f71a876bed9efb1a22ff0601b038ca9 /industry_gui.c
parent5d02a2c2955cb7b14600d184e3a5c475f4a8199f (diff)
downloadopenttd-4af271c49416e12f106b9f9fbbf51b6ac459052d.tar.xz
(svn r2170) -fix: [1179457] the industry list can now no longer scroll down then the end of the list is reached (Hackykid)
Diffstat (limited to 'industry_gui.c')
-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);