1
0
Fork 0

Codechange: Use FindVehicleOnPos instead of HasVehicleOnPos, if there is no stop condition.

pull/14082/head
frosch 2025-04-22 14:22:39 +02:00 committed by frosch
parent fca3103d8c
commit dacd77b2bd
1 changed files with 1 additions and 1 deletions

View File

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