diff --git a/src/pathfinder/yapf/yapf_ship.cpp b/src/pathfinder/yapf/yapf_ship.cpp index 6a34d5dc89..544c33fddf 100644 --- a/src/pathfinder/yapf/yapf_ship.cpp +++ b/src/pathfinder/yapf/yapf_ship.cpp @@ -379,7 +379,7 @@ public: if (IsDockingTile(n.GetTile())) { /* Check docking tile for occupancy. */ uint count = 0; - HasVehicleOnPos(n.GetTile(), &count, &CountShipProc); + FindVehicleOnPos(n.GetTile(), &count, &CountShipProc); c += count * 3 * YAPF_TILE_LENGTH; }