summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2007-01-10 14:22:49 +0000
committercelestar <celestar@openttd.org>2007-01-10 14:22:49 +0000
commit52d14b3dd0c4d17fe4d13df7ad9014c4ba3827e8 (patch)
treefba77bb2a016c23abb794e6ea9618d9aa77440bc /src
parente35fdd699b6d1eafc41fb7083ece17b6812e7c63 (diff)
downloadopenttd-52d14b3dd0c4d17fe4d13df7ad9014c4ba3827e8.tar.xz
(svn r8026) -Fix (r2441) When taking up cargo that is transferring, trains will now also have the virtual profit deducted.
Diffstat (limited to 'src')
-rw-r--r--src/economy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/economy.c b/src/economy.c
index bcd3ac552..a325a863c 100644
--- a/src/economy.c
+++ b/src/economy.c
@@ -1476,7 +1476,7 @@ int LoadUnloadVehicle(Vehicle *v, bool just_arrived)
feeder_profit_share = ge->feeder_profit * cargoshare / 10000;
v->cargo_count += cap;
ge->waiting_acceptance -= cap;
- v->profit_this_year -= feeder_profit_share;
+ u->profit_this_year -= feeder_profit_share;
ge->feeder_profit -= feeder_profit_share;
unloading_time += cap;
st->time_since_load = 0;