summaryrefslogtreecommitdiff
path: root/order_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'order_gui.c')
-rw-r--r--order_gui.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/order_gui.c b/order_gui.c
index cc2bbe966..52061507e 100644
--- a/order_gui.c
+++ b/order_gui.c
@@ -649,16 +649,13 @@ void ShowOrdersWindow(const Vehicle *v)
DeleteWindowById(WC_VEHICLE_ORDERS, veh);
DeleteWindowById(WC_VEHICLE_DETAILS, veh);
- _alloc_wnd_parent_num = veh;
-
if (v->owner != _local_player) {
- w = AllocateWindowDesc(&_other_orders_desc);
+ w = AllocateWindowDescFront(&_other_orders_desc, veh);
} else {
- w = AllocateWindowDesc((v->type == VEH_Train) ? &_orders_train_desc : &_orders_desc);
+ w = AllocateWindowDescFront((v->type == VEH_Train) ? &_orders_train_desc : &_orders_desc, veh);
}
if (w != NULL) {
- w->window_number = veh;
w->caption_color = v->owner;
w->vscroll.cap = 6;
w->resize.step_height = 10;