(svn r2404) assert that GetTileOwner() isn't called for tiles, which don't store owner information

pull/155/head
tron 19 years ago
parent 80aa6af8e3
commit 793eba3a3a

@ -81,6 +81,10 @@ static inline bool IsTileType(TileIndex tile, TileType type)
static inline Owner GetTileOwner(TileIndex tile)
{
assert(tile < MapSize());
assert(!IsTileType(tile, MP_HOUSE));
assert(!IsTileType(tile, MP_VOID));
assert(!IsTileType(tile, MP_INDUSTRY));
return _map_owner[tile];
}

Loading…
Cancel
Save