summaryrefslogtreecommitdiff
path: root/town_map.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-30 09:29:01 +0000
committertron <tron@openttd.org>2006-03-30 09:29:01 +0000
commit7ad0d787e25306e700045cb678c66eeba9ea4434 (patch)
tree21b00e82b5c9850aa9567dba92d59ebb57aa50ba /town_map.h
parent84de6477b2665dd0b16f93b677501dde02fc40d5 (diff)
downloadopenttd-7ad0d787e25306e700045cb678c66eeba9ea4434.tar.xz
(svn r4166) Sprinkle several map accessors with assert()s
Diffstat (limited to 'town_map.h')
-rw-r--r--town_map.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/town_map.h b/town_map.h
index 364d0047f..98b97007d 100644
--- a/town_map.h
+++ b/town_map.h
@@ -5,6 +5,7 @@
static inline uint GetTownIndex(TileIndex t)
{
+ assert(IsTileType(t, MP_HOUSE) || IsTileType(t, MP_STREET)); // XXX incomplete
return _m[t].m2;
}