http://code.google.com/p/flightgear-bugs/issues/detail?id=870
--destIndex;
}
- unsigned int currentWpIndex = currentWaypoint();
- WayptRef w(waypointAt(currentWpIndex));
- _fp->deleteIndex(currentWpIndex);
+ int currentWpIndex = currentWaypoint();
- SG_LOG(SG_GENERAL, SG_INFO, "wpt:" << w->ident());
+ WayptRef w = _fp->legAtIndex(srcIndex)->waypoint();
+ _fp->deleteIndex(srcIndex);
_fp->insertWayptAtIndex(w, destIndex);
if (srcIndex == currentWpIndex) {