(svn r22049) -Codechange: Add assert condition to GetRoadOwner.

This commit is contained in:
terkhen 2011-02-10 18:27:50 +00:00
parent 16dd93d3fb
commit 096c2857ee
1 changed files with 1 additions and 0 deletions

View File

@ -198,6 +198,7 @@ static inline bool HasTileRoadType(TileIndex t, RoadType rt)
*/
static inline Owner GetRoadOwner(TileIndex t, RoadType rt)
{
assert(IsTileType(t, MP_ROAD) || IsTileType(t, MP_STATION) || IsTileType(t, MP_TUNNELBRIDGE));
switch (rt) {
default: NOT_REACHED();
case ROADTYPE_ROAD: return (Owner)GB(IsNormalRoadTile(t) ? _m[t].m1 : _me[t].m7, 0, 5);