summaryrefslogtreecommitdiff
path: root/ai
diff options
context:
space:
mode:
Diffstat (limited to 'ai')
-rw-r--r--ai/default/default.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ai/default/default.c b/ai/default/default.c
index 6794d9f26..379f4516e 100644
--- a/ai/default/default.c
+++ b/ai/default/default.c
@@ -2806,6 +2806,7 @@ static bool AiCheckRoadFinished(Player *p)
are.dest = p->ai.cur_tile_b;
tile = TILE_MASK(p->ai.cur_tile_a + TileOffsByDiagDir(dir));
+ if (IsRoadStopTile(tile) || IsTileDepotType(tile, TRANSPORT_ROAD)) return false;
bits = GetTileTrackStatus(tile, TRANSPORT_ROAD) & _ai_road_table_and[dir];
if (bits == 0) return false;