--- 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) {