diff src/vehicle.cpp @ 8245:a0c99d3eec0a draft

(svn r11809) -Fix [FS#1643]: set expenses type when selling all vehicles in depot
author smatz <smatz@openttd.org>
date Thu, 10 Jan 2008 21:54:45 +0000 (2008-01-10)
parents e9d8b0764f38
children 7d580c9c41fb
line wrap: on
line diff
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -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);