summaryrefslogtreecommitdiff
path: root/station_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'station_map.h')
-rw-r--r--station_map.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/station_map.h b/station_map.h
index fe9d5a805..0aed8b432 100644
--- a/station_map.h
+++ b/station_map.h
@@ -162,6 +162,7 @@ static inline bool IsHangarTile(TileIndex t)
static inline Axis GetRailStationAxis(TileIndex t)
{
+ assert(IsRailwayStation(t));
return HASBIT(GetStationGfx(t), 0) ? AXIS_Y : AXIS_X;
}