From 0574bcb46d2379afc9429318db0814fbae101feb Mon Sep 17 00:00:00 2001 From: truelight Date: Thu, 31 Aug 2006 19:29:24 +0000 Subject: (svn r6285) -Fix r6143: of course deleting a waypoint should call the Delete wrapper, not the Destroy function (/me slaps hisself) --- waypoint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- cgit v1.2.3-70-g09d2