(svn r5097) -Fix: The trolly AI used information from the wrong industry when calculating the amount of to be transported goods
authortron
Sun, 04 Jun 2006 13:22:18 +0000
changeset 3951 d761055723d7
parent 3950 5cf604bab034
child 3952 c51a2e094dde
(svn r5097) -Fix: The trolly AI used information from the wrong industry when calculating the amount of to be transported goods
ai/trolly/trolly.c
--- a/ai/trolly/trolly.c	Sun Jun 04 13:03:48 2006 +0000
+++ b/ai/trolly/trolly.c	Sun Jun 04 13:22:18 2006 +0000
@@ -477,7 +477,7 @@
 					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;