File diff r21241:2d4224921bbf → r21242:f9186ba6c34b
src/cargoaction.cpp
Show inline comments
 
@@ -224,8 +224,7 @@ bool VehicleCargoReroute::operator()(Car
 
	}
 
	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. */