mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-11 08:49:50 +00:00
(svn r25053) -Fix [FS#5488, FS#5484] (r25010): transfer credits were not given
This commit is contained in:
parent
9b06e79765
commit
c3b0bd7d58
@ -167,6 +167,7 @@ bool CargoTransfer::operator()(CargoPacket *cp)
|
||||
CargoPacket *cp_new = this->Preprocess(cp);
|
||||
if (cp_new == NULL) return false;
|
||||
this->source->RemoveFromMeta(cp_new, VehicleCargoList::MTA_TRANSFER, cp_new->Count());
|
||||
cp_new->AddFeederShare(this->payment->PayTransfer(cp_new, cp_new->Count()));
|
||||
this->destination->Append(cp_new);
|
||||
return cp_new == cp;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user