From c644aa754d683c3697efa73ecfb7f23a94d3835d Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sun, 19 Mar 2023 22:38:31 +0000 Subject: [PATCH] Only check primary vehicle ships in RemoveDock --- src/station_cmd.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 6f5d0d5044..654a3dd1da 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -3207,6 +3207,8 @@ static CommandCost RemoveDock(TileIndex tile, DoCommandFlag flags) ClearDockingTilesCheckingNeighbours(tile2); for (Ship *s : Ship::Iterate()) { + if (!s->IsPrimaryVehicle()) continue; + /* Find all ships going to our dock. */ if (s->current_order.GetDestination() != st->index) { continue;