summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-09-27 14:58:46 +0000
committerfrosch <frosch@openttd.org>2008-09-27 14:58:46 +0000
commit67db5087cd472e0cf340c86b85d0c195e7c123cf (patch)
tree37781d55de944180d09d9cd6425c749c4707c28e /src/vehicle.cpp
parent05d8a0ebad2a4f8dfb7af8e821aca9a78ee76c12 (diff)
downloadopenttd-67db5087cd472e0cf340c86b85d0c195e7c123cf.tar.xz
(svn r14406) -Fix [FS#Eddi]: Autoreplace did not work for vehicles in free wagon chains.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 5a9dbca72..660406016 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -1274,7 +1274,7 @@ CommandCost CmdDepotMassAutoReplace(TileIndex tile, uint32 flags, uint32 p1, uin
if (!IsDepotTile(tile) || !IsTileOwner(tile, _current_player)) return CMD_ERROR;
/* Get the list of vehicles in the depot */
- BuildDepotVehicleList(vehicle_type, tile, &list, &list);
+ BuildDepotVehicleList(vehicle_type, tile, &list, &list, true);
bool did_something = false;