From c2220a98366172370e4ce47c31188ab16dab3760 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sun, 1 Oct 2006 15:03:15 +0000 Subject: [PATCH] (svn r6608) - Fix (r6601): The scroll bar could fall out of the window... more gui-fu needed... --- vehicle_gui.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vehicle_gui.c b/vehicle_gui.c index b70cc3ad4d..51596726b0 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);