From 88787412b6ba8eceac27faf96425a44d230551c9 Mon Sep 17 00:00:00 2001 From: fonsinchen Date: Sun, 9 Feb 2014 21:10:25 +0000 Subject: (svn r26327) -Fix [FS#5901]: Take care of next_station when reassigning from MTA_DELIVER to MTA_TRANSFER. --- src/cargopacket.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cargopacket.h') diff --git a/src/cargopacket.h b/src/cargopacket.h index d425f30f5..5d0f67166 100644 --- a/src/cargopacket.h +++ b/src/cargopacket.h @@ -429,7 +429,8 @@ public: * amount of cargo to be moved. Second parameter is destination (if * applicable), return value is amount of cargo actually moved. */ - uint Reassign(uint max_move, MoveToAction from, MoveToAction to); + template + uint Reassign(uint max_move, TileOrStationID update = INVALID_TILE); uint Return(uint max_move, StationCargoList *dest, StationID next_station); uint Unload(uint max_move, StationCargoList *dest, CargoPayment *payment); uint Shift(uint max_move, VehicleCargoList *dest); -- cgit v1.2.3-54-g00ecf