diff options
author | rubidium <rubidium@openttd.org> | 2013-02-17 14:10:15 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-02-17 14:10:15 +0000 |
commit | 2795ed5b091fa5580976547b3669bac78cd595ce (patch) | |
tree | 9b0d3c0b5444157729363fc0323b6a2236e53d49 /src/cargopacket.h | |
parent | 6647cb917963c4e0d6d633b7a92af78167050893 (diff) | |
download | openttd-2795ed5b091fa5580976547b3669bac78cd595ce.tar.xz |
(svn r25008) -Codechange: Make CargoList::Truncate behave similarly to CargoList::MoveTo, i.e. pass the amount to truncate (fonsinchen)
Diffstat (limited to 'src/cargopacket.h')
-rw-r--r-- | src/cargopacket.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cargopacket.h b/src/cargopacket.h index dcb1415fc..1e2093134 100644 --- a/src/cargopacket.h +++ b/src/cargopacket.h @@ -246,7 +246,7 @@ public: void Append(CargoPacket *cp); - void Truncate(uint max_remaining); + uint Truncate(uint max_move = UINT_MAX); template <class Tother_inst> bool MoveTo(Tother_inst *dest, uint count, MoveToAction mta, CargoPayment *payment, uint data = 0); |