summaryrefslogtreecommitdiff
path: root/waypoint.c
diff options
context:
space:
mode:
Diffstat (limited to 'waypoint.c')
-rw-r--r--waypoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/waypoint.c b/waypoint.c
index 4dd2baf73..b574761fa 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);
}
}