diff -r 77ef74d28e76 -r b18634a31a4a waypoint.c --- a/waypoint.c Sat Sep 02 22:47:45 2006 +0000 +++ b/waypoint.c Sun Sep 03 08:25:27 2006 +0000 @@ -98,10 +98,7 @@ /* Internal handler to delete a waypoint */ void DestroyWaypoint(Waypoint *wp) { - DestinationID dest; - - dest.waypoint = wp->index; - RemoveOrderFromAllVehicles(OT_GOTO_WAYPOINT, dest); + RemoveOrderFromAllVehicles(OT_GOTO_WAYPOINT, wp->index); if (wp->string != STR_NULL) DeleteName(wp->string);