summaryrefslogtreecommitdiff
path: root/vehicle_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'vehicle_gui.c')
-rw-r--r--vehicle_gui.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/vehicle_gui.c b/vehicle_gui.c
index 0416e7121..849dfb4e6 100644
--- a/vehicle_gui.c
+++ b/vehicle_gui.c
@@ -442,9 +442,7 @@ void ShowVehicleRefitWindow(const Vehicle *v, VehicleOrderID order)
DeleteWindowById(WC_VEHICLE_REFIT, v->index);
- _alloc_wnd_parent_num = v->index;
-
- w = AllocateWindowDesc(&_vehicle_refit_desc);
+ w = AllocateWindowDescFront(&_vehicle_refit_desc, v->index);
WP(w, refit_d).order = order;
if (w != NULL) {