ai/trolly/trolly.c
changeset 3951 48014db7c6f2
parent 3946 3c8c78208dbb
child 3952 e96de3e61c9b
--- 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;