summaryrefslogtreecommitdiff
path: root/src/cargopacket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cargopacket.cpp')
-rw-r--r--src/cargopacket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cargopacket.cpp b/src/cargopacket.cpp
index 2735a38e5..37091fd66 100644
--- a/src/cargopacket.cpp
+++ b/src/cargopacket.cpp
@@ -313,7 +313,7 @@ bool CargoList<Tinst>::MoveTo(Tother_inst *dest, uint max_move, MoveToAction mta
cp->count = left;
} else {
/* 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.