forked from mirror/OpenTTD
(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
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user