Fix bad interaction between CourseAndDistance overloads and use of implicit

SGWaypoint construction from SGGeod.
This commit is contained in:
jmt
2009-06-09 00:01:14 +00:00
committed by Tim Moore
parent 6e326976d5
commit 29fb8e0f74
2 changed files with 2 additions and 2 deletions

View File

@@ -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 );
}

View File

@@ -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();