From: torsten Date: Wed, 14 Apr 2010 17:26:45 +0000 (+0000) Subject: gps warning fix (xxx will be initialized after yyy) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0750d8a6d431e0dbe3d6d38f36092c32b6828dc7;p=flightgear.git gps warning fix (xxx will be initialized after yyy) --- diff --git a/src/Instrumentation/gps.cxx b/src/Instrumentation/gps.cxx index 685754744..1ddb87e08 100644 --- a/src/Instrumentation/gps.cxx +++ b/src/Instrumentation/gps.cxx @@ -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 );