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 /vehicle_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 'vehicle_gui.c')
-rw-r--r-- | vehicle_gui.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vehicle_gui.c b/vehicle_gui.c index 0416e7121..849dfb4e6 100644 --- a/vehicle_gui.c +++ b/vehicle_gui.c @@ -442,9 +442,7 @@ void ShowVehicleRefitWindow(const Vehicle *v, VehicleOrderID order) DeleteWindowById(WC_VEHICLE_REFIT, v->index); - _alloc_wnd_parent_num = v->index; - - w = AllocateWindowDesc(&_vehicle_refit_desc); + w = AllocateWindowDescFront(&_vehicle_refit_desc, v->index); WP(w, refit_d).order = order; if (w != NULL) { |