#include <simgear/misc/sg_path.hxx>
#include <simgear/debug/logstream.hxx>
-#include <simgear/route/waypoint.hxx>
#include <simgear/math/sg_geodesy.hxx>
#include <simgear/structure/exception.hxx>
#include <simgear/constants.h>
FGAIWaypoint* const FGAIFlightPlan::getCurrentWaypoint( void ) const
{
+ if (wpt_iterator == waypoints.end())
+ return 0;
return *wpt_iterator;
}