Changeset - r21466:50c80b0a6024
[Not reviewed]
master
0 1 0
fonsinchen - 10 years ago 2014-05-11 12:49:51
fonsinchen@openttd.org
(svn r26575) -Change [FS#5995]: Add an assert to catch underflowing action counts.
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/cargopacket.cpp
Show inline comments
 
@@ -359,6 +359,7 @@ void VehicleCargoList::AddToCache(const 
 
 */
 
void VehicleCargoList::RemoveFromMeta(const CargoPacket *cp, MoveToAction action, uint count)
 
{
 
	assert(count <= this->action_counts[action]);
 
	this->AssertCountConsistency();
 
	this->RemoveFromCache(cp, count);
 
	this->action_counts[action] -= count;
0 comments (0 inline, 0 general)