Changeset - r17116:740b45df69cf
[Not reviewed]
master
0 1 0
rubidium - 14 years ago 2011-01-19 20:40:27
rubidium@openttd.org
(svn r21863) -Fix (r21849): load the amount that should be loaded instead of the amount that should not be loaded
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/cargopacket.cpp
Show inline comments
 
@@ -313,7 +313,7 @@ bool CargoList<Tinst>::MoveTo(Tother_ins
 
			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.
 

	
0 comments (0 inline, 0 general)