(svn r7129) -Codechange: Get rid of a global variable that only sets a window's number.

This commit is contained in:
Darkvater
2006-11-11 09:47:44 +00:00
parent d50f6c8a8c
commit 21db9ebb8e
9 changed files with 19 additions and 31 deletions

View File

@@ -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) {