diff --git a/src/pathfinder/npf/npf.cpp b/src/pathfinder/npf/npf.cpp index 6a937c11ee..dcd6469c6b 100644 --- a/src/pathfinder/npf/npf.cpp +++ b/src/pathfinder/npf/npf.cpp @@ -311,7 +311,7 @@ static int32 NPFWaterPathCost(AyStar *as, AyStarNode *current, OpenListNode *par if (IsDockingTile(current->tile)) { /* Check docking tile for occupancy */ - uint count = 1; + uint count = 0; HasVehicleOnPos(current->tile, VEH_SHIP, &count, &CountShipProc); cost += count * 3 * _trackdir_length[trackdir]; } diff --git a/src/pathfinder/yapf/yapf_ship.cpp b/src/pathfinder/yapf/yapf_ship.cpp index c41e633b63..15757c3327 100644 --- a/src/pathfinder/yapf/yapf_ship.cpp +++ b/src/pathfinder/yapf/yapf_ship.cpp @@ -287,7 +287,7 @@ public: if (IsDockingTile(n.GetTile())) { /* Check docking tile for occupancy */ - uint count = 1; + uint count = 0; HasVehicleOnPos(n.GetTile(), VEH_SHIP, &count, &CountShipProc); c += count * 3 * YAPF_TILE_LENGTH; }