summaryrefslogtreecommitdiff
path: root/src/water_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/water_cmd.cpp')
-rw-r--r--src/water_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp
index 158bd13f0..7091f9f2d 100644
--- a/src/water_cmd.cpp
+++ b/src/water_cmd.cpp
@@ -187,7 +187,7 @@ void CheckForDockingTile(TileIndex t)
TileIndex tile = t + TileOffsByDiagDir(d);
if (!IsValidTile(tile)) continue;
- if (IsDockTile(tile)) {
+ if (IsDockTile(tile) && IsValidDockingDirectionForDock(tile, d)) {
Station::GetByTile(tile)->docking_station.Add(t);
SetDockingTile(t, true);
}