diff --git a/aircraft_gui.c b/aircraft_gui.c --- a/aircraft_gui.c +++ b/aircraft_gui.c @@ -183,9 +183,7 @@ static void ShowAircraftDetailsWindow(co DeleteWindowById(WC_VEHICLE_ORDERS, veh); DeleteWindowById(WC_VEHICLE_DETAILS, veh); - _alloc_wnd_parent_num = veh; - w = AllocateWindowDesc(&_aircraft_details_desc); - w->window_number = veh; + w = AllocateWindowDescFront(&_aircraft_details_desc, veh); w->caption_color = v->owner; // w->vscroll.cap = 6; // w->traindetails_d.tab = 0;