summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vehicle_gui.c3
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);