diff options
author | smatz <smatz@openttd.org> | 2008-09-07 18:21:57 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-09-07 18:21:57 +0000 |
commit | 2c0a95ed6650c454b76ed706bb0db9953cd50fec (patch) | |
tree | d6e7f36c979ebc5c2c5d4a2fd68b2731626c0f1d /src/waypoint.h | |
parent | 12dcb3adb4b0f59320247ff3eb4480b075315b8b (diff) | |
download | openttd-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.h')
-rw-r--r-- | src/waypoint.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/waypoint.h b/src/waypoint.h index 22259de09..a0742940e 100644 --- a/src/waypoint.h +++ b/src/waypoint.h @@ -44,11 +44,6 @@ static inline bool IsValidWaypointID(WaypointID index) return index < GetWaypointPoolSize() && GetWaypoint(index)->IsValid(); } -static inline void DeleteWaypoint(Waypoint *wp) -{ - wp->~Waypoint(); -} - #define FOR_ALL_WAYPOINTS_FROM(wp, start) for (wp = GetWaypoint(start); wp != NULL; wp = (wp->index + 1U < GetWaypointPoolSize()) ? GetWaypoint(wp->index + 1U) : NULL) if (wp->IsValid()) #define FOR_ALL_WAYPOINTS(wp) FOR_ALL_WAYPOINTS_FROM(wp, 0) |