summaryrefslogtreecommitdiff
path: root/ai
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-06-04 13:22:18 +0000
committertron <tron@openttd.org>2006-06-04 13:22:18 +0000
commita87004e453b2ce02f56243ef569ed982e7b10331 (patch)
treed0e1a3264fd735466ef0ac4653ac3097d8f690ce /ai
parent9b89d3b8cd298f617086765232fec00a1e58bf90 (diff)
downloadopenttd-a87004e453b2ce02f56243ef569ed982e7b10331.tar.xz
(svn r5097) -Fix: The trolly AI used information from the wrong industry when calculating the amount of to be transported goods
Diffstat (limited to 'ai')
-rw-r--r--ai/trolly/trolly.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ai/trolly/trolly.c b/ai/trolly/trolly.c
index b003c21df..8cfd12fd5 100644
--- a/ai/trolly/trolly.c
+++ b/ai/trolly/trolly.c
@@ -477,7 +477,7 @@ static void AiNew_State_LocateRoute(Player *p)
if (GetIndustry(p->ainew.temp)->produced_cargo[0] == GetIndustry(p->ainew.from_ic)->accepts_cargo[i]) {
// Found a compatbiel industry
found = true;
- max_cargo = GetIndustry(p->ainew.temp)->total_production[0] - GetIndustry(p->ainew.from_ic)->total_transported[0];
+ max_cargo = GetIndustry(p->ainew.temp)->total_production[0] - GetIndustry(p->ainew.temp)->total_transported[0];
p->ainew.from_deliver = false;
p->ainew.to_deliver = true;
break;