diff options
Diffstat (limited to 'roadveh_gui.c')
-rw-r--r-- | roadveh_gui.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/roadveh_gui.c b/roadveh_gui.c index f787a82bf..acf0173de 100644 --- a/roadveh_gui.c +++ b/roadveh_gui.c @@ -219,9 +219,8 @@ static void ShowRoadVehDetailsWindow(const Vehicle *v) 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; } |