diff options
Diffstat (limited to 'rail_cmd.c')
-rw-r--r-- | rail_cmd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rail_cmd.c b/rail_cmd.c index d75404e69..5e42ced3a 100644 --- a/rail_cmd.c +++ b/rail_cmd.c @@ -768,10 +768,11 @@ static void DoDeleteWaypoint(Waypoint *cp) { Order order; cp->xy = 0; + order.type = OT_GOTO_WAYPOINT; - order.flags = 0; order.station = cp - _waypoints; - DeleteCommandFromVehicleSchedule(order); + DeleteDestinationFromVehicleOrder(order); + if (~cp->town_or_string & 0xC000) DeleteName(cp->town_or_string); RedrawWaypointSign(cp); } |