diff options
author | truelight <truelight@openttd.org> | 2006-08-31 19:29:24 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2006-08-31 19:29:24 +0000 |
commit | df46071c29c841f6e477cd5c4b4f473e6ce02ff2 (patch) | |
tree | 11ddbfb386b98ccc5456f1d193cddc001276e9da | |
parent | ece5584d00b82c07a97f82b59400f1c604489f45 (diff) | |
download | openttd-df46071c29c841f6e477cd5c4b4f473e6ce02ff2.tar.xz |
(svn r6285) -Fix r6143: of course deleting a waypoint should call the Delete wrapper, not the Destroy function (/me slaps hisself)
-rw-r--r-- | waypoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/waypoint.c b/waypoint.c index 4dd2baf73..b574761fa 100644 --- a/waypoint.c +++ b/waypoint.c @@ -264,7 +264,7 @@ void WaypointsDailyLoop(void) /* Check if we need to delete a waypoint */ FOR_ALL_WAYPOINTS(wp) { - if (wp->deleted != 0 && --wp->deleted == 0) DestroyWaypoint(wp); + if (wp->deleted != 0 && --wp->deleted == 0) DeleteWaypoint(wp); } } |