summaryrefslogtreecommitdiff
path: root/newgrf_station.c
diff options
context:
space:
mode:
Diffstat (limited to 'newgrf_station.c')
-rw-r--r--newgrf_station.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newgrf_station.c b/newgrf_station.c
index 77e2a9c55..1f438101b 100644
--- a/newgrf_station.c
+++ b/newgrf_station.c
@@ -253,7 +253,7 @@ static TileIndex FindRailStationEnd(TileIndex tile, TileIndexDiff delta, bool ch
if (waypoint) {
if (!IsTileType(new_tile, MP_RAILWAY)) break;
- if (GetRailTileType(new_tile) != RAIL_TYPE_DEPOT_WAYPOINT) break;
+ if (GetRailTileType(new_tile) != RAIL_TILE_DEPOT_WAYPOINT) break;
if (GetRailTileSubtype(new_tile) != RAIL_SUBTYPE_WAYPOINT) break;
if (check_axis && GetWaypointAxis(new_tile) != orig_axis) break;
} else {