mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 18:40:29 +00:00
(svn r21863) -Fix (r21849): load the amount that should be loaded instead of the amount that should not be loaded
This commit is contained in:
parent
d426906a01
commit
6435a89c28
@ -313,7 +313,7 @@ bool CargoList<Tinst>::MoveTo(Tother_inst *dest, uint max_move, MoveToAction mta
|
|||||||
cp->count = left;
|
cp->count = left;
|
||||||
} else {
|
} else {
|
||||||
/* But... the rest needs package splitting. */
|
/* But... the rest needs package splitting. */
|
||||||
CargoPacket *cp_new = cp->Split(cp->count - max_move);
|
CargoPacket *cp_new = cp->Split(max_move);
|
||||||
|
|
||||||
static_cast<Tinst *>(this)->RemoveFromCache(cp_new); // this reflects the changes in cp.
|
static_cast<Tinst *>(this)->RemoveFromCache(cp_new); // this reflects the changes in cp.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user