changeset 17126:5b41f311a643 draft

(svn r21863) -Fix (r21849): load the amount that should be loaded instead of the amount that should not be loaded
author rubidium <rubidium@openttd.org>
date Wed, 19 Jan 2011 20:40:27 +0000
parents 9889a00e0d4c
children 1e96a453989d
files src/cargopacket.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/cargopacket.cpp
+++ b/src/cargopacket.cpp
@@ -313,7 +313,7 @@
 			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.