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
commit73b8d800369dab31c890281d4c3756495f785943 (patch)
tree9f6f4d24e777d7d99f711074a3a0df0780a58727 /ship_gui.c
parente786cd5c6b828293c6860b838a9180b72a22cab7 (diff)
downloadopenttd-73b8d800369dab31c890281d4c3756495f785943.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;
}