diff options
-rw-r--r-- | src/object_cmd.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/object_cmd.cpp b/src/object_cmd.cpp index cedec4188..ed68643e7 100644 --- a/src/object_cmd.cpp +++ b/src/object_cmd.cpp @@ -640,6 +640,8 @@ static CommandCost TerraformTile_Object(TileIndex tile, DoCommandFlag flags, uin { ObjectType type = GetObjectType(tile); + if (GetWaterClass(tile) == WATER_CLASS_CANAL) return_cmd_error(STR_ERROR_MUST_DEMOLISH_CANAL_FIRST); + if (type == OBJECT_OWNED_LAND) { /* Owned land remains unsold */ CommandCost ret = CheckTileOwnership(tile); |