diff options
author | rubidium <rubidium@openttd.org> | 2013-02-27 22:12:53 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-02-27 22:12:53 +0000 |
commit | c3b0bd7d587053e68fbb798787f2d40f15795a4c (patch) | |
tree | 68caecfb0c89fb30721d5146d0cce8d5a072fdce | |
parent | 9b06e797650a09a96dd9fa0cff7456943c913947 (diff) | |
download | openttd-c3b0bd7d587053e68fbb798787f2d40f15795a4c.tar.xz |
(svn r25053) -Fix [FS#5488, FS#5484] (r25010): transfer credits were not given
-rw-r--r-- | src/cargoaction.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cargoaction.cpp b/src/cargoaction.cpp index fe16546e4..51e06f16a 100644 --- a/src/cargoaction.cpp +++ b/src/cargoaction.cpp @@ -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; } |