Only check primary vehicle ships in RemoveDock

pull/507/head
Jonathan G Rennison 1 year ago
parent b7cb4099a6
commit c644aa754d

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

Loading…
Cancel
Save