Index: src/autoreplace_gui.cpp =================================================================== --- src/autoreplace_gui.cpp (revision 11289) +++ src/autoreplace_gui.cpp (working copy) @@ -491,38 +491,6 @@ }; -void ShowReplaceVehicleWindow(VehicleType vehicletype) -{ - Window *w; - - DeleteWindowById(WC_REPLACE_VEHICLE, vehicletype); - - switch (vehicletype) { - case VEH_TRAIN: - w = AllocateWindowDescFront(&_replace_rail_vehicle_desc, vehicletype); - w->vscroll.cap = 8; - w->resize.step_height = 14; - WP(w, replaceveh_d).wagon_btnstate = true; - break; - case VEH_ROAD: - w = AllocateWindowDescFront(&_replace_road_vehicle_desc, vehicletype); - w->vscroll.cap = 8; - w->resize.step_height = 14; - break; - case VEH_SHIP: - case VEH_AIRCRAFT: - w = AllocateWindowDescFront(&_replace_ship_aircraft_vehicle_desc, vehicletype); - w->vscroll.cap = 4; - w->resize.step_height = 24; - break; - default: return; - } - - w->caption_color = _local_player; - w->vscroll2.cap = w->vscroll.cap; // these two are always the same - WP(w, replaceveh_d).sel_group = DEFAULT_GROUP; - } - void ShowReplaceGroupVehicleWindow(GroupID id_g, VehicleType vehicletype) { Window *w; Index: src/vehicle_gui.h =================================================================== --- src/vehicle_gui.h (revision 11289) +++ src/vehicle_gui.h (working copy) @@ -67,7 +67,6 @@ void ShowVehicleListWindow(PlayerID player, VehicleType vehicle_type, StationID station); void ShowVehicleListWindow(PlayerID player, VehicleType vehicle_type, TileIndex depot_tile); -void ShowReplaceVehicleWindow(VehicleType vehicletype); void DrawSmallOrderList(const Vehicle *v, int x, int y); void ShowReplaceGroupVehicleWindow(GroupID group, VehicleType veh); Index: src/vehicle_gui.cpp =================================================================== --- src/vehicle_gui.cpp (revision 11289) +++ src/vehicle_gui.cpp (working copy) @@ -1123,7 +1123,7 @@ switch (e->we.dropdown.index) { case 0: /* Replace window */ - ShowReplaceVehicleWindow(vl->vehicle_type); + ShowReplaceGroupVehicleWindow(ALL_GROUP, vl->vehicle_type); // if group-list is disabled, replace all vehicles. break; case 1: /* Send for servicing */ DoCommandP(0, GB(w->window_number, 16, 16) /* StationID or OrderID (depending on VLW) */,