summaryrefslogtreecommitdiff
path: root/src/depot_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/depot_base.h')
-rw-r--r--src/depot_base.h4
1 files changed, 2 insertions, 2 deletions
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<Depot, DepotID, &_Depot_pool> {
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)