1
0
Fork 0

(svn r6148) -Fix r6146: mostly it is useful to declare a variable in the function you use it (tnx Tron)

release/0.5
truelight 2006-08-26 17:34:48 +00:00
parent 3b82b67391
commit b7ecdc85d8
1 changed files with 2 additions and 1 deletions

View File

@ -88,7 +88,6 @@ static void RedrawWaypointSign(const Waypoint* wp)
/* Update all signs */
void UpdateAllWaypointSigns(void)
{
DestinationID dest;
Waypoint *wp;
FOR_ALL_WAYPOINTS(wp) {
@ -99,6 +98,8 @@ void UpdateAllWaypointSigns(void)
/* Internal handler to delete a waypoint */
void DestroyWaypoint(Waypoint *wp)
{
DestinationID dest;
dest.waypoint = wp->index;
RemoveOrderFromAllVehicles(OT_GOTO_WAYPOINT, dest);