(svn r14265) -Fix (r10750): desyncs after deleting a waypoint because of explicit destructor call instead of using operator delete
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user