From 26f7c1c764b77bde9f31ca75e2710978b63d925f Mon Sep 17 00:00:00 2001 From: belugas Date: Wed, 12 Apr 2006 20:33:01 +0000 Subject: [PATCH] (svn r4404) Reverted part of r4403. GetRailStationAxis need assertion on IsRailwayStation. Thanks glx for spotting it --- station_map.h | 1 + 1 file changed, 1 insertion(+) diff --git a/station_map.h b/station_map.h index fe9d5a8052..0aed8b4320 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; }