diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cargoaction.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cargoaction.cpp b/src/cargoaction.cpp index 929017506..48c49e99f 100644 --- a/src/cargoaction.cpp +++ b/src/cargoaction.cpp @@ -224,8 +224,7 @@ bool VehicleCargoReroute::operator()(CargoPacket *cp) } if (this->source != this->destination) { this->source->RemoveFromMeta(cp_new, VehicleCargoList::MTA_TRANSFER, cp_new->Count()); - this->source->AddToMeta(cp_new, VehicleCargoList::MTA_TRANSFER); - this->destination->action_counts[VehicleCargoList::MTA_TRANSFER] += cp_new->Count(); + this->destination->AddToMeta(cp_new, VehicleCargoList::MTA_TRANSFER); } /* Legal, as front pushing doesn't invalidate iterators in std::list. */ |