summaryrefslogtreecommitdiff
path: root/src/waypoint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/waypoint.cpp')
-rw-r--r--src/waypoint.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/waypoint.cpp b/src/waypoint.cpp
index 3d6ed983e..e36668db6 100644
--- a/src/waypoint.cpp
+++ b/src/waypoint.cpp
@@ -309,8 +309,7 @@ CommandCost RemoveTrainWaypoint(TileIndex tile, uint32 flags, bool justremove)
Waypoint *wp;
/* Make sure it's a waypoint */
- if (!IsTileType(tile, MP_RAILWAY) ||
- !IsRailWaypoint(tile) ||
+ if (!IsRailWaypointTile(tile) ||
(!CheckTileOwnership(tile) && _current_player != OWNER_WATER) ||
!EnsureNoVehicleOnGround(tile)) {
return CMD_ERROR;