diff options
author | peter1138 <peter1138@openttd.org> | 2006-10-01 15:03:15 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-10-01 15:03:15 +0000 |
commit | 778fd536712edfc4216f3424b6c599d5c06d8a02 (patch) | |
tree | 1fabbc18071cfc04fe08b9ca64d27dbf8495bef9 /vehicle_gui.c | |
parent | 02806778df5c067b86132bfe64f905b0ce27bcd7 (diff) | |
download | openttd-778fd536712edfc4216f3424b6c599d5c06d8a02.tar.xz |
(svn r6608) - Fix (r6601): The scroll bar could fall out of the window... more gui-fu needed...
Diffstat (limited to 'vehicle_gui.c')
-rw-r--r-- | vehicle_gui.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vehicle_gui.c b/vehicle_gui.c index b70cc3ad4..51596726b 100644 --- a/vehicle_gui.c +++ b/vehicle_gui.c @@ -333,10 +333,11 @@ static void VehicleRefitWndProc(Window *w, WindowEvent *e) free(WP(w, refit_d).list); WP(w, refit_d).list = BuildRefitList(v); WP(w, refit_d).length = length; - SetVScrollCount(w, WP(w, refit_d).list->num_lines); } } + SetVScrollCount(w, WP(w, refit_d).list->num_lines); + SetDParam(0, v->string_id); SetDParam(1, v->unitnumber); DrawWindowWidgets(w); |