]> git.mxchange.org Git - flightgear.git/commitdiff
gps warning fix (xxx will be initialized after yyy)
authortorsten <torsten>
Wed, 14 Apr 2010 17:26:45 +0000 (17:26 +0000)
committerTim Moore <timoore33@gmail.com>
Mon, 19 Apr 2010 07:56:32 +0000 (09:56 +0200)
src/Instrumentation/gps.cxx

index 685754744cb04a386291b15a6721106d07286c9e..1ddb87e083356db9c883a4e360e67c6eca49ec9c 100644 (file)
@@ -213,6 +213,7 @@ void GPS::Config::bind(GPS* aOwner, SGPropertyNode* aCfg)
 
 GPS::GPS ( SGPropertyNode *node) : 
   _selectedCourse(0.0),
+  _desiredCourse(0.0),
   _dataValid(false),
   _lastPosValid(false),
   _mode("init"),
@@ -220,8 +221,7 @@ GPS::GPS ( SGPropertyNode *node) :
   _num(node->getIntValue("number", 0)),
   _computeTurnData(false),
   _anticipateTurn(false),
-  _inTurn(false),
-  _desiredCourse(0.0)
+  _inTurn(false)
 {
   string branch = "/instrumentation/" + _name;
   _gpsNode = fgGetNode(branch.c_str(), _num, true );