]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/gps.cxx
Fix two bugs in the new autopilot code
[flightgear.git] / src / Instrumentation / gps.cxx
index 685754744cb04a386291b15a6721106d07286c9e..4b522dfce05a82484045cc69c38982b32967cd3c 100644 (file)
@@ -213,15 +213,16 @@ void GPS::Config::bind(GPS* aOwner, SGPropertyNode* aCfg)
 
 GPS::GPS ( SGPropertyNode *node) : 
   _selectedCourse(0.0),
+  _desiredCourse(0.0),
   _dataValid(false),
   _lastPosValid(false),
   _mode("init"),
   _name(node->getStringValue("name", "gps")),
   _num(node->getIntValue("number", 0)),
+  _searchResultsCached(false),
   _computeTurnData(false),
   _anticipateTurn(false),
-  _inTurn(false),
-  _desiredCourse(0.0)
+  _inTurn(false)
 {
   string branch = "/instrumentation/" + _name;
   _gpsNode = fgGetNode(branch.c_str(), _num, true );