diff options
Diffstat (limited to 'src/industry.h')
-rw-r--r-- | src/industry.h | 4 |
1 files changed, 2 insertions, 2 deletions
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<Industry, IndustryID, &_Industry_pool> { 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 { |