ai_old.c
changeset 2147 eb6ba42fd216
parent 2140 a04d0142ad65
child 2153 ecfc674410b4
--- a/ai_old.c	Wed Jul 20 19:15:23 2005 +0000
+++ b/ai_old.c	Wed Jul 20 22:02:58 2005 +0000
@@ -1075,7 +1075,7 @@
 static void AiWantTrainRoute(Player *p)
 {
 	uint16 r;
-	p->ai.railtype_to_use = p->max_railtype - 1;
+	p->ai.railtype_to_use = GetBestRailtype(p);
 	r = (uint16)Random();
 
 	if (r > 0xD000) {