summaryrefslogtreecommitdiff
path: root/water_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'water_cmd.c')
-rw-r--r--water_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/water_cmd.c b/water_cmd.c
index 5d50f01ac..009bdcd34 100644
--- a/water_cmd.c
+++ b/water_cmd.c
@@ -103,7 +103,7 @@ static int32 RemoveShipDepot(TileIndex tile, uint32 flags)
if (flags & DC_EXEC) {
/* Kill the depot, which is registered at the northernmost tile. Use that one */
- DoDeleteDepot(tile2 < tile ? tile2 : tile);
+ DeleteDepot(GetDepotByTile(tile2 < tile ? tile2 : tile));
MakeWater(tile);
MakeWater(tile2);