(svn r8026) -Fix (r2441) When taking up cargo that is transferring, trains will now also have the virtual profit deducted.
authorcelestar
Wed, 10 Jan 2007 14:22:49 +0000
changeset 5579 1e03483f839f
parent 5578 5f898d0bfebd
child 5580 b7e597116b9c
(svn r8026) -Fix (r2441) When taking up cargo that is transferring, trains will now also have the virtual profit deducted.
src/economy.c
--- a/src/economy.c	Wed Jan 10 10:39:45 2007 +0000
+++ b/src/economy.c	Wed Jan 10 14:22:49 2007 +0000
@@ -1476,7 +1476,7 @@
 			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;