summaryrefslogtreecommitdiff
path: root/waypoint.c
diff options
context:
space:
mode:
Diffstat (limited to 'waypoint.c')
-rw-r--r--waypoint.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/waypoint.c b/waypoint.c
index b574761fa..7a995e359 100644
--- a/waypoint.c
+++ b/waypoint.c
@@ -98,10 +98,7 @@ void UpdateAllWaypointSigns(void)
/* 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);