1
0
Fork 0

gps warning fix (xxx will be initialized after yyy)

This commit is contained in:
torsten 2010-04-14 17:26:45 +00:00 committed by Tim Moore
parent 8ffa65a821
commit 0750d8a6d4

View file

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