diff --git a/roadveh_gui.c b/roadveh_gui.c --- a/roadveh_gui.c +++ b/roadveh_gui.c @@ -219,9 +219,8 @@ static void ShowRoadVehDetailsWindow(con DeleteWindowById(WC_VEHICLE_ORDERS, veh); DeleteWindowById(WC_VEHICLE_DETAILS, veh); - _alloc_wnd_parent_num = veh; - w = AllocateWindowDesc(&_roadveh_details_desc); - w->window_number = veh; + + w = AllocateWindowDescFront(&_roadveh_details_desc, veh); w->caption_color = v->owner; }