# HG changeset patch # User tron # Date 2005-06-03 22:43:59 # Node ID 6a2625c2cc60a401f8f70e0f37a83ea5355032de # Parent d86d746aae10b4bd729d8dcde889e1346651c6fd (svn r2404) assert that GetTileOwner() isn't called for tiles, which don't store owner information diff --git a/tile.h b/tile.h --- a/tile.h +++ b/tile.h @@ -81,6 +81,10 @@ static inline bool IsTileType(TileIndex 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]; }