summaryrefslogtreecommitdiff
path: root/src/waypoint.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-09-07 18:21:57 +0000
committersmatz <smatz@openttd.org>2008-09-07 18:21:57 +0000
commit2c0a95ed6650c454b76ed706bb0db9953cd50fec (patch)
treed6e7f36c979ebc5c2c5d4a2fd68b2731626c0f1d /src/waypoint.cpp
parent12dcb3adb4b0f59320247ff3eb4480b075315b8b (diff)
downloadopenttd-2c0a95ed6650c454b76ed706bb0db9953cd50fec.tar.xz
(svn r14265) -Fix (r10750): desyncs after deleting a waypoint because of explicit destructor call instead of using operator delete
Diffstat (limited to 'src/waypoint.cpp')
-rw-r--r--src/waypoint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/waypoint.cpp b/src/waypoint.cpp
index 0916a887f..3d6ed983e 100644
--- a/src/waypoint.cpp
+++ b/src/waypoint.cpp
@@ -293,7 +293,7 @@ void WaypointsDailyLoop()
/* Check if we need to delete a waypoint */
FOR_ALL_WAYPOINTS(wp) {
- if (wp->deleted != 0 && --wp->deleted == 0) DeleteWaypoint(wp);
+ if (wp->deleted != 0 && --wp->deleted == 0) delete wp;
}
}