diff options
author | rubidium <rubidium@openttd.org> | 2009-10-20 22:06:33 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-10-20 22:06:33 +0000 |
commit | f4e0b3642b36a8d176b6d64d0f13fc2b2428de90 (patch) | |
tree | e572d1699fd22a79af14dfeb44aad5b9418071d8 /src | |
parent | fe717d033ef6f0e10e7aeed94ad337835341e338 (diff) | |
download | openttd-f4e0b3642b36a8d176b6d64d0f13fc2b2428de90.tar.xz |
(svn r17834) -Fix [FS#3274] (r17808): you got paid a bit too much... ofcourse the index of the source station generally doesn't equal the location of said station.
Diffstat (limited to 'src')
-rw-r--r-- | src/economy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index 2fc5c34f9..20bc23abe 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -1035,7 +1035,7 @@ void CargoPayment::PayFinalDelivery(const CargoPacket *cp, uint count) } /* Handle end of route payment */ - Money profit = DeliverGoods(count, this->ct, this->current_station, cp->SourceStation(), cp->DaysInTransit(), this->owner, cp->SourceSubsidyType(), cp->SourceSubsidyID()); + Money profit = DeliverGoods(count, this->ct, this->current_station, cp->SourceStationXY(), cp->DaysInTransit(), this->owner, cp->SourceSubsidyType(), cp->SourceSubsidyID()); this->route_profit += profit; /* The vehicle's profit is whatever route profit there is minus feeder shares. */ |