diff --git a/simgear/route/waypoint.cxx b/simgear/route/waypoint.cxx index 697eb374..189bc59b 100644 --- a/simgear/route/waypoint.cxx +++ b/simgear/route/waypoint.cxx @@ -81,5 +81,5 @@ void SGWayPoint::CourseAndDistance( const double cur_lon, // Calculate course and distances between two waypoints void SGWayPoint::CourseAndDistance( const SGWayPoint &wp, double *course, double *dist ) const { - CourseAndDistance( wp.get_target(), course, dist ); + CourseAndDistance( wp.get_target(), *course, *dist ); } diff --git a/simgear/route/waypoint.hxx b/simgear/route/waypoint.hxx index 2141200c..dbd831d3 100644 --- a/simgear/route/waypoint.hxx +++ b/simgear/route/waypoint.hxx @@ -92,7 +92,7 @@ public: /** * Construct from a geodetic position, in WGS84 coordinates */ - SGWayPoint(const SGGeod& pos, const std::string& s = "", const std::string& n = "" ); + SGWayPoint(const SGGeod& pos, const std::string& s, const std::string& n); /** Destructor */ ~SGWayPoint();