(svn r6285) -Fix r6143: of course deleting a waypoint should call the Delete wrapper, not the Destroy function (/me slaps hisself)
authortruelight
Thu, 31 Aug 2006 19:29:24 +0000
changeset 4500 426d0baa1be5
parent 4499 c57155fea7a5
child 4501 16ca2f0e465e
(svn r6285) -Fix r6143: of course deleting a waypoint should call the Delete wrapper, not the Destroy function (/me slaps hisself)
waypoint.c
--- a/waypoint.c	Thu Aug 31 19:15:01 2006 +0000
+++ b/waypoint.c	Thu Aug 31 19:29:24 2006 +0000
@@ -264,7 +264,7 @@
 
 	/* 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);
 	}
 }