diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cargopacket.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cargopacket.cpp b/src/cargopacket.cpp index 34f8c4243..9b96be62e 100644 --- a/src/cargopacket.cpp +++ b/src/cargopacket.cpp @@ -359,6 +359,7 @@ void VehicleCargoList::AddToCache(const CargoPacket *cp) */ 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; |