(svn r6146) -Fix: MSVC doesn't know how to cast to an union.. so fix it via an indirect (and btw the old) way

This commit is contained in:
truelight
2006-08-26 17:31:47 +00:00
parent c6f4f95438
commit 6846e38095
3 changed files with 10 additions and 3 deletions

View File

@@ -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);