From b00e510140b4983d58f580fdca87368b1edb436a Mon Sep 17 00:00:00 2001 From: smatz Date: Sat, 3 Jan 2009 16:06:58 +0000 Subject: (svn r14807) -Codechange: use INVALID_TILE instead of 0 to mark invalid depots, industries, towns and waypoints --- src/industry.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/industry.h') diff --git a/src/industry.h b/src/industry.h index e750c6ab0..f154823a2 100644 --- a/src/industry.h +++ b/src/industry.h @@ -132,10 +132,10 @@ struct Industry : PoolItem { PersistentStorage psa; ///< Persistent storage for NewGRF industries. - Industry(TileIndex tile = 0) : xy(tile) {} + Industry(TileIndex tile = INVALID_TILE) : xy(tile) {} ~Industry(); - inline bool IsValid() const { return this->xy != 0; } + inline bool IsValid() const { return this->xy != INVALID_TILE; } }; struct IndustryTileTable { -- cgit v1.2.3-70-g09d2