road_cmd.c
changeset 4388 e5a166837162
parent 4352 8ddb01bc6075
child 4638 8abe4f10b94b
--- a/road_cmd.c	Sat Aug 26 14:41:16 2006 +0000
+++ b/road_cmd.c	Sat Aug 26 14:44:55 2006 +0000
@@ -603,7 +603,7 @@
 
 	if (!EnsureNoVehicle(tile)) return CMD_ERROR;
 
-	if (flags & DC_EXEC) DoDeleteDepot(tile);
+	if (flags & DC_EXEC) DeleteDepot(GetDepotByTile(tile));
 
 	return _price.remove_road_depot;
 }