diff options
author | truelight <truelight@openttd.org> | 2006-08-26 17:31:47 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2006-08-26 17:31:47 +0000 |
commit | 6846e38095f9f47bd80d9f652c705277c8597366 (patch) | |
tree | 09d9a6f67e95f26706a0b4e404891623c5c71a12 /waypoint.c | |
parent | c6f4f954388142a1d5b85993be5574710865ac98 (diff) | |
download | openttd-6846e38095f9f47bd80d9f652c705277c8597366.tar.xz |
(svn r6146) -Fix: MSVC doesn't know how to cast to an union.. so fix it via an indirect (and btw the old) way
Diffstat (limited to 'waypoint.c')
-rw-r--r-- | waypoint.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/waypoint.c b/waypoint.c index 25abc7d66..4aeb72040 100644 --- a/waypoint.c +++ b/waypoint.c @@ -88,6 +88,7 @@ static void RedrawWaypointSign(const Waypoint* wp) /* Update all signs */ void UpdateAllWaypointSigns(void) { + DestinationID dest; Waypoint *wp; FOR_ALL_WAYPOINTS(wp) { @@ -98,7 +99,8 @@ void UpdateAllWaypointSigns(void) /* Internal handler to delete a waypoint */ void DestroyWaypoint(Waypoint *wp) { - RemoveOrderFromAllVehicles(OT_GOTO_WAYPOINT, (DestinationID)wp->index); + dest.waypoint = wp->index; + RemoveOrderFromAllVehicles(OT_GOTO_WAYPOINT, dest); if (wp->string != STR_NULL) DeleteName(wp->string); |