From 7f998ce80d48e6f34be5d81b00c5384264e90ab3 Mon Sep 17 00:00:00 2001 From: yexo Date: Tue, 26 Jan 2010 23:03:47 +0000 Subject: (svn r18921) -Codechange: make the preconditions for Get/Set CustomStationSpecIndex a bit more strict --- src/station_map.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/station_map.h') diff --git a/src/station_map.h b/src/station_map.h index 0ab951b31..55d5c4139 100644 --- a/src/station_map.h +++ b/src/station_map.h @@ -407,13 +407,13 @@ static inline bool IsCustomStationSpecIndex(TileIndex t) static inline void SetCustomStationSpecIndex(TileIndex t, byte specindex) { - assert(IsTileType(t, MP_STATION)); + assert(HasStationTileRail(t)); _m[t].m4 = specindex; } static inline uint GetCustomStationSpecIndex(TileIndex t) { - assert(IsTileType(t, MP_STATION)); + assert(HasStationTileRail(t)); return _m[t].m4; } -- cgit v1.2.3-54-g00ecf