Fix bad interaction between CourseAndDistance overloads and use of implicit
SGWaypoint construction from SGGeod.
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user