summaryrefslogtreecommitdiff
path: root/unmovable_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'unmovable_map.h')
-rw-r--r--unmovable_map.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/unmovable_map.h b/unmovable_map.h
index 32375c2cd..5f4b2b329 100644
--- a/unmovable_map.h
+++ b/unmovable_map.h
@@ -10,6 +10,7 @@ typedef enum UnmovableType {
static inline UnmovableType GetUnmovableType(TileIndex t)
{
+ assert(IsTileType(t, MP_UNMOVABLE));
return _m[t].m5;
}
@@ -24,6 +25,7 @@ static inline bool IsTransmitterTile(TileIndex t)
static inline bool IsOwnedLand(TileIndex t)
{
+ assert(IsTileType(t, MP_UNMOVABLE));
return GetUnmovableType(t) == UNMOVABLE_OWNED_LAND;
}