water_cmd.c
changeset 4388 e5a166837162
parent 4344 5d0e40cd67b9
child 4434 4175805666a5
--- a/water_cmd.c	Sat Aug 26 14:41:16 2006 +0000
+++ b/water_cmd.c	Sat Aug 26 14:44:55 2006 +0000
@@ -103,7 +103,7 @@
 
 	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);