diff options
author | Darkvater <darkvater@openttd.org> | 2006-11-11 09:47:44 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-11-11 09:47:44 +0000 |
commit | 21db9ebb8e5692245e1e6d68a045649f6a37166a (patch) | |
tree | 9f6f4d24e777d7d99f711074a3a0df0780a58727 /train_gui.c | |
parent | d50f6c8a8c367ebf2ef0c1a1db14d64366b2243b (diff) | |
download | openttd-21db9ebb8e5692245e1e6d68a045649f6a37166a.tar.xz |
(svn r7129) -Codechange: Get rid of a global variable that only sets a window's number.
Diffstat (limited to 'train_gui.c')
-rw-r--r-- | train_gui.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/train_gui.c b/train_gui.c index 323dd7bed..3f30d61b2 100644 --- a/train_gui.c +++ b/train_gui.c @@ -1216,10 +1216,8 @@ static void ShowTrainDetailsWindow(const Vehicle *v) DeleteWindowById(WC_VEHICLE_ORDERS, veh); DeleteWindowById(WC_VEHICLE_DETAILS, veh); - _alloc_wnd_parent_num = veh; - w = AllocateWindowDesc(&_train_details_desc); + w = AllocateWindowDescFront(&_train_details_desc, veh); - w->window_number = veh; w->caption_color = v->owner; w->vscroll.cap = 6; w->widget[4].data = (w->vscroll.cap << 8) + 1; |