summaryrefslogtreecommitdiff
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
commit077448ead7b6a1a73913a9de6b83dd671bc44114 (patch)
treefba77bb2a016c23abb794e6ea9618d9aa77440bc
parent752aeecac237d152fe2e93887215ae944f464989 (diff)
downloadopenttd-077448ead7b6a1a73913a9de6b83dd671bc44114.tar.xz
(svn r8026) -Fix (r2441) When taking up cargo that is transferring, trains will now also have the virtual profit deducted.
-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;