summaryrefslogtreecommitdiff
path: root/ship_gui.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-11-11 09:47:44 +0000
committerDarkvater <darkvater@openttd.org>2006-11-11 09:47:44 +0000
commit21db9ebb8e5692245e1e6d68a045649f6a37166a (patch)
tree9f6f4d24e777d7d99f711074a3a0df0780a58727 /ship_gui.c
parentd50f6c8a8c367ebf2ef0c1a1db14d64366b2243b (diff)
downloadopenttd-21db9ebb8e5692245e1e6d68a045649f6a37166a.tar.xz
(svn r7129) -Codechange: Get rid of a global variable that only sets a window's number.
Diffstat (limited to 'ship_gui.c')
-rw-r--r--ship_gui.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ship_gui.c b/ship_gui.c
index a65270be7..37505a8a9 100644
--- a/ship_gui.c
+++ b/ship_gui.c
@@ -217,9 +217,7 @@ static void ShowShipDetailsWindow(const Vehicle *v)
DeleteWindowById(WC_VEHICLE_ORDERS, veh);
DeleteWindowById(WC_VEHICLE_DETAILS, veh);
- _alloc_wnd_parent_num = veh;
- w = AllocateWindowDesc(&_ship_details_desc);
- w->window_number = veh;
+ w = AllocateWindowDescFront(&_ship_details_desc, veh);
w->caption_color = v->owner;
}