diff options
author | yexo <yexo@openttd.org> | 2010-01-26 23:03:47 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-01-26 23:03:47 +0000 |
commit | 7f998ce80d48e6f34be5d81b00c5384264e90ab3 (patch) | |
tree | f4f6d2f33b0df7b61916a7e7955a6d7c150e9d81 /src/station_map.h | |
parent | 0bc1b736d7b0c9ed1796731834cf7ad14cdcdaa0 (diff) | |
download | openttd-7f998ce80d48e6f34be5d81b00c5384264e90ab3.tar.xz |
(svn r18921) -Codechange: make the preconditions for Get/Set CustomStationSpecIndex a bit more strict
Diffstat (limited to 'src/station_map.h')
-rw-r--r-- | src/station_map.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |