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/depot_base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/depot_base.h') diff --git a/src/depot_base.h b/src/depot_base.h index 35d35e392..53877485d 100644 --- a/src/depot_base.h +++ b/src/depot_base.h @@ -16,10 +16,10 @@ struct Depot : PoolItem { TileIndex xy; TownID town_index; - Depot(TileIndex xy = 0) : xy(xy) {} + Depot(TileIndex xy = INVALID_TILE) : xy(xy) {} ~Depot(); - inline bool IsValid() const { return this->xy != 0; } + inline bool IsValid() const { return this->xy != INVALID_TILE; } }; static inline bool IsValidDepotID(DepotID index) -- cgit v1.2.3-54-g00ecf