summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-08-31 19:29:24 +0000
committertruelight <truelight@openttd.org>2006-08-31 19:29:24 +0000
commitdf46071c29c841f6e477cd5c4b4f473e6ce02ff2 (patch)
tree11ddbfb386b98ccc5456f1d193cddc001276e9da
parentece5584d00b82c07a97f82b59400f1c604489f45 (diff)
downloadopenttd-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.c2
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);
}
}