From a1266da7825c0f979139db22c3c028feb9f49e40 Mon Sep 17 00:00:00 2001 From: smatz Date: Thu, 10 Jan 2008 21:54:45 +0000 Subject: [PATCH] (svn r11809) -Fix [FS#1643]: set expenses type when selling all vehicles in depot --- src/vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 5f9ea24727..d865361319 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -1627,7 +1627,7 @@ CommandCost CmdDepotSellAllVehicles(TileIndex tile, uint32 flags, uint32 p1, uin uint16 wagon_list_length = 0; uint16 wagon_count = 0; - CommandCost cost; + CommandCost cost(EXPENSES_NEW_VEHICLES); uint i, sell_command, total_number_vehicles; VehicleType vehicle_type = (VehicleType)GB(p1, 0, 8);