diff --git a/scripts/ai/strategies/AIDriveStrategyFieldWorkCourse.lua b/scripts/ai/strategies/AIDriveStrategyFieldWorkCourse.lua index a38027132..315fada47 100644 --- a/scripts/ai/strategies/AIDriveStrategyFieldWorkCourse.lua +++ b/scripts/ai/strategies/AIDriveStrategyFieldWorkCourse.lua @@ -613,6 +613,9 @@ function AIDriveStrategyFieldWorkCourse:startConnectingPath(ix) self:debug('Connecting path has %d waypoints, start pathfinding to target waypoint %d, zOffset %.1f', #connectingPath, targetWaypointIx, zOffset) self.state = self.states.WAITING_FOR_PATHFINDER + -- to have a course set while waiting for the pathfinder and make sure that the course known to the PPC + -- is the same as the one we are using + self:startCourse(self.rawConnectingPath, 1) self.pathfinderController:findPathToNode(context, targetNode, 0, zOffset, 1) end end