From df46071c29c841f6e477cd5c4b4f473e6ce02ff2 Mon Sep 17 00:00:00 2001 From: truelight Date: Thu, 31 Aug 2006 19:29:24 +0000 Subject: [PATCH] (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 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); } }