mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
(svn r6285) -Fix r6143: of course deleting a waypoint should call the Delete wrapper, not the Destroy function (/me slaps hisself)
This commit is contained in:
parent
ece5584d00
commit
df46071c29
@ -264,7 +264,7 @@ void WaypointsDailyLoop(void)
|
|||||||
|
|
||||||
/* Check if we need to delete a waypoint */
|
/* Check if we need to delete a waypoint */
|
||||||
FOR_ALL_WAYPOINTS(wp) {
|
FOR_ALL_WAYPOINTS(wp) {
|
||||||
if (wp->deleted != 0 && --wp->deleted == 0) DestroyWaypoint(wp);
|
if (wp->deleted != 0 && --wp->deleted == 0) DeleteWaypoint(wp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user