summaryrefslogtreecommitdiff
path: root/src/economy.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-02-17 14:17:06 +0000
committerrubidium <rubidium@openttd.org>2013-02-17 14:17:06 +0000
commit71bbc130fc3bde400bcf2d46e0d57d974acc83aa (patch)
treef51b0879b596d64a2baf426ba3796f5056345dc4 /src/economy.cpp
parent2795ed5b091fa5580976547b3669bac78cd595ce (diff)
downloadopenttd-71bbc130fc3bde400bcf2d46e0d57d974acc83aa.tar.xz
(svn r25009) -Codechange: refactor bits of cargo packet (lists) to reduce duplicated code (fonsinchen)
Diffstat (limited to 'src/economy.cpp')
-rw-r--r--src/economy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index 39cb8ddaa..7d055227e 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -1176,7 +1176,7 @@ void CargoPayment::PayFinalDelivery(const CargoPacket *cp, uint count)
this->route_profit += profit;
/* The vehicle's profit is whatever route profit there is minus feeder shares. */
- this->visual_profit += profit - cp->FeederShare();
+ this->visual_profit += profit - cp->FeederShare(count);
}
/**