From 7ad0d787e25306e700045cb678c66eeba9ea4434 Mon Sep 17 00:00:00 2001 From: tron Date: Thu, 30 Mar 2006 09:29:01 +0000 Subject: (svn r4166) Sprinkle several map accessors with assert()s --- unmovable_map.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'unmovable_map.h') 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; } -- cgit v1.2.3-54-g00ecf