(svn r11809) -Fix [FS#1643]: set expenses type when selling all vehicles in depot
authorsmatz
Thu, 10 Jan 2008 21:54:45 +0000
changeset 8741 839f686635b0
parent 8740 90448f0ed4bd
child 8742 a55430b832a6
(svn r11809) -Fix [FS#1643]: set expenses type when selling all vehicles in depot
src/vehicle.cpp
--- a/src/vehicle.cpp	Thu Jan 10 18:59:16 2008 +0000
+++ b/src/vehicle.cpp	Thu Jan 10 21:54:45 2008 +0000
@@ -1627,7 +1627,7 @@
 	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);