diff options
author | tron <tron@openttd.org> | 2006-03-30 09:29:01 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-30 09:29:01 +0000 |
commit | 7ad0d787e25306e700045cb678c66eeba9ea4434 (patch) | |
tree | 21b00e82b5c9850aa9567dba92d59ebb57aa50ba /town_map.h | |
parent | 84de6477b2665dd0b16f93b677501dde02fc40d5 (diff) | |
download | openttd-7ad0d787e25306e700045cb678c66eeba9ea4434.tar.xz |
(svn r4166) Sprinkle several map accessors with assert()s
Diffstat (limited to 'town_map.h')
-rw-r--r-- | town_map.h | 1 |
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; } |