Only check primary vehicle ships in RemoveDock

This commit is contained in:
Jonathan G Rennison
2023-03-19 22:38:31 +00:00
parent b7cb4099a6
commit c644aa754d

View File

@@ -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;