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 | 0574bcb46d2379afc9429318db0814fbae101feb (patch) | |
tree | 11ddbfb386b98ccc5456f1d193cddc001276e9da | |
parent | 53227e29f8f331290372ab9e168d5263b164af25 (diff) | |
download | openttd-0574bcb46d2379afc9429318db0814fbae101feb.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); } } |