summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/water_cmd.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp
index f942349af..4c013857a 100644
--- a/src/water_cmd.cpp
+++ b/src/water_cmd.cpp
@@ -567,6 +567,9 @@ static void TileLoopWaterHelper(TileIndex tile, const TileIndexDiffC *offs)
)) {
break;
}
+
+ Vehicle *v = FindFloodableVehicleOnTile(target);
+ if (v != NULL) FloodVehicle(v);
}
/* FALLTHROUGH */