]> git.mxchange.org Git - flightgear.git/blobdiff - src/Navaids/fixlist.cxx
fix trx and rx heights and improve calculations
[flightgear.git] / src / Navaids / fixlist.cxx
index 1f685e193fa719b98a8a14904e9e99c303116e59..50c06ac563c804bb99eda19862fc2921386b20ac 100644 (file)
 #include <simgear/math/sg_geodesy.hxx>
 
 #include "fixlist.hxx"
-#include "Navaids/fix.hxx"
-#include "Airports/simple.hxx"
+#include <Navaids/fix.hxx>
+#include <Airports/simple.hxx>
 
 FGFix::FGFix(const std::string& aIdent, const SGGeod& aPos) :
   FGPositioned(FIX, aIdent, aPos)
 {
+  init(true); // init FGPositioned
 }
 
 // Constructor
@@ -66,7 +67,7 @@ bool FGFixList::init(const SGPath& path ) {
     // read in each remaining line of the file
     while ( ! in.eof() ) {
       double lat, lon;
-      string ident;
+      std::string ident;
       in >> lat >> lon >> ident;
       if (lat > 95) break;