diff options
author | tron <tron@openttd.org> | 2006-09-03 08:25:27 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-09-03 08:25:27 +0000 |
commit | d5e5a78cf414eb143741f6fc15d8245f5197b3c9 (patch) | |
tree | 79ebec494a87cd0b8e16e577740868f5bf90a7d2 /waypoint.c | |
parent | 5a86b502c2f553096f88d7f84241e0f3e581fcb2 (diff) | |
download | openttd-d5e5a78cf414eb143741f6fc15d8245f5197b3c9.tar.xz |
(svn r6353) -Codechange: Make DestinationID a typedef of uin16, which is as large as any type of destinataion (StationID, DepotID, WaypointID) it can hold
DestinationID being a union of these types is just hassle without benefit and cannot be handled correctly everywhere because of local lack of information
Diffstat (limited to 'waypoint.c')
-rw-r--r-- | waypoint.c | 5 |
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); |