summaryrefslogtreecommitdiff
path: root/waypoint.c
diff options
context:
space:
mode:
Diffstat (limited to 'waypoint.c')
-rw-r--r--waypoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/waypoint.c b/waypoint.c
index d5cd4987d..aa29c7a84 100644
--- a/waypoint.c
+++ b/waypoint.c
@@ -249,7 +249,7 @@ static void DoDeleteWaypoint(Waypoint *wp)
{
wp->xy = 0;
- RemoveOrderFromAllVehicles(OT_GOTO_WAYPOINT, wp->index);
+ RemoveOrderFromAllVehicles(OT_GOTO_WAYPOINT, (DestinationID)wp->index);
if (wp->string != STR_NULL) DeleteName(wp->string);