From: jmt Date: Tue, 9 Jun 2009 00:01:14 +0000 (+0000) Subject: Fix bad interaction between CourseAndDistance overloads and use of implicit X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=29fb8e0f7492916aadabf85d9834350e62c97ec1;p=simgear.git Fix bad interaction between CourseAndDistance overloads and use of implicit SGWaypoint construction from SGGeod. --- 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();