summaryrefslogtreecommitdiff
path: root/src/tunnelbridge_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tunnelbridge_cmd.cpp')
-rw-r--r--src/tunnelbridge_cmd.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp
index ec98fc1ce..3d8ee8937 100644
--- a/src/tunnelbridge_cmd.cpp
+++ b/src/tunnelbridge_cmd.cpp
@@ -673,9 +673,15 @@ static inline CommandCost CheckAllowRemoveTunnelBridge(TileIndex tile)
}
case TRANSPORT_RAIL:
- case TRANSPORT_WATER:
return CheckOwnership(GetTileOwner(tile));
+ case TRANSPORT_WATER: {
+ /* Always allow to remove aqueducts without owner. */
+ Owner aqueduct_owner = GetTileOwner(tile);
+ if (aqueduct_owner == OWNER_NONE) aqueduct_owner = _current_company;
+ return CheckOwnership(aqueduct_owner);
+ }
+
default: NOT_REACHED();
}
}