summaryrefslogtreecommitdiff
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
commit7707f0b732caadf0a14cd00b03ab64c8a9bf9e15 (patch)
tree7629672a5f71a876bed9efb1a22ff0601b038ca9
parentdbffb060c1d5269dd6ad5bf3adf7335cdd111f5d (diff)
downloadopenttd-7707f0b732caadf0a14cd00b03ab64c8a9bf9e15.tar.xz
(svn r2170) -fix: [1179457] the industry list can now no longer scroll down then the end of the list is reached (Hackykid)
-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);