(svn r14406) -Fix [FS#Eddi]: Autoreplace did not work for vehicles in free wagon chains.

This commit is contained in:
frosch
2008-09-27 14:58:46 +00:00
parent 05d8a0ebad
commit 67db5087cd
4 changed files with 111 additions and 20 deletions

View File

@@ -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;