summaryrefslogtreecommitdiff
path: root/src/industry.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-01-03 16:06:58 +0000
committersmatz <smatz@openttd.org>2009-01-03 16:06:58 +0000
commit254e19da91309da11416c69ae7899dc11e608df0 (patch)
treecfe8a97df4f219709152bb304eee65541e9ab8db /src/industry.h
parent21308de6cb2995912d67af4ae704a8870d90e156 (diff)
downloadopenttd-254e19da91309da11416c69ae7899dc11e608df0.tar.xz
(svn r14807) -Codechange: use INVALID_TILE instead of 0 to mark invalid depots, industries, towns and waypoints
Diffstat (limited to 'src/industry.h')
-rw-r--r--src/industry.h4
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 {