summaryrefslogtreecommitdiff
path: root/src/waypoint.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/waypoint.h')
-rw-r--r--src/waypoint.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/waypoint.h b/src/waypoint.h
index a4afbba43..8b07bdbac 100644
--- a/src/waypoint.h
+++ b/src/waypoint.h
@@ -33,10 +33,10 @@ struct Waypoint : PoolItem<Waypoint, WaypointID, &_Waypoint_pool> {
byte deleted; ///< Delete counter. If greater than 0 then it is decremented until it reaches 0; the waypoint is then is deleted.
- Waypoint(TileIndex tile = 0);
+ Waypoint(TileIndex tile = INVALID_TILE);
~Waypoint();
- inline bool IsValid() const { return this->xy != 0; }
+ inline bool IsValid() const { return this->xy != INVALID_TILE; }
};
static inline bool IsValidWaypointID(WaypointID index)