diff --git a/waypoint.c b/waypoint.c index 4dd2baf73d..b574761fa5 100644 --- a/waypoint.c +++ b/waypoint.c @@ -264,7 +264,7 @@ void WaypointsDailyLoop(void) /* Check if we need to delete a waypoint */ FOR_ALL_WAYPOINTS(wp) { - if (wp->deleted != 0 && --wp->deleted == 0) DestroyWaypoint(wp); + if (wp->deleted != 0 && --wp->deleted == 0) DeleteWaypoint(wp); } }