summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/road_map.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/road_map.h b/src/road_map.h
index 01daba8e7..62f125dbb 100644
--- a/src/road_map.h
+++ b/src/road_map.h
@@ -198,6 +198,7 @@ static inline bool HasTileRoadType(TileIndex t, RoadType rt)
*/
static inline Owner GetRoadOwner(TileIndex t, RoadType rt)
{
+ assert(IsTileType(t, MP_ROAD) || IsTileType(t, MP_STATION) || IsTileType(t, MP_TUNNELBRIDGE));
switch (rt) {
default: NOT_REACHED();
case ROADTYPE_ROAD: return (Owner)GB(IsNormalRoadTile(t) ? _m[t].m1 : _me[t].m7, 0, 5);