summaryrefslogtreecommitdiff
path: root/waypoint.c
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
commit0574bcb46d2379afc9429318db0814fbae101feb (patch)
tree11ddbfb386b98ccc5456f1d193cddc001276e9da /waypoint.c
parent53227e29f8f331290372ab9e168d5263b164af25 (diff)
downloadopenttd-0574bcb46d2379afc9429318db0814fbae101feb.tar.xz
(svn r6285) -Fix r6143: of course deleting a waypoint should call the Delete wrapper, not the Destroy function (/me slaps hisself)
Diffstat (limited to 'waypoint.c')
-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);
}
}