summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/town_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index 5baaa64d3..ea44603b0 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -1318,10 +1318,10 @@ static bool CanFollowRoad(TileIndex tile, DiagDirection dir)
return target_rb != ROAD_NONE;
case MP_STATION:
- return IsDriveThroughStopTile(tile);
+ return IsDriveThroughStopTile(target_tile);
case MP_TUNNELBRIDGE:
- return GetTunnelBridgeTransportType(tile) == TRANSPORT_ROAD;
+ return GetTunnelBridgeTransportType(target_tile) == TRANSPORT_ROAD;
case MP_HOUSE:
case MP_INDUSTRY: