summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-01-10 21:54:45 +0000
committersmatz <smatz@openttd.org>2008-01-10 21:54:45 +0000
commita1266da7825c0f979139db22c3c028feb9f49e40 (patch)
treeae4a66570b64eb4c4c1670f2d615a193f29073f6 /src
parent40ef636f438928fbcb078a96d90efc3e2f89319e (diff)
downloadopenttd-a1266da7825c0f979139db22c3c028feb9f49e40.tar.xz
(svn r11809) -Fix [FS#1643]: set expenses type when selling all vehicles in depot
Diffstat (limited to 'src')
-rw-r--r--src/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 5f9ea2472..d86536131 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);