summaryrefslogtreecommitdiff
path: root/ai_old.c
diff options
context:
space:
mode:
Diffstat (limited to 'ai_old.c')
-rw-r--r--ai_old.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ai_old.c b/ai_old.c
index f6cd06bed..70b4103c9 100644
--- a/ai_old.c
+++ b/ai_old.c
@@ -1075,7 +1075,7 @@ static void AiWantPassengerRoute(Player *p)
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) {