1
0
Fork 0

Fix some warnings about constructor initialisation order.

This commit is contained in:
Julian Smith 2021-05-22 11:55:34 +01:00
parent 837a200811
commit f7704a0339
2 changed files with 9 additions and 9 deletions

View file

@ -28,11 +28,11 @@ class NearestCarrierToNotification : public simgear::Emesary::INotification
public: public:
NearestCarrierToNotification(SGGeod _comparisonPosition) : position(), NearestCarrierToNotification(SGGeod _comparisonPosition) : position(),
comparisonPosition(_comparisonPosition), comparisonPosition(_comparisonPosition),
distanceMeters(std::numeric_limits<double>::max()),
carrier(0),
deckheight(0),
heading(0), heading(0),
vckts(0) vckts(0),
deckheight(0),
distanceMeters(std::numeric_limits<double>::max()),
carrier(0)
{ {
} }
@ -99,4 +99,4 @@ protected:
class FGAICarrier* carrier; class FGAICarrier* carrier;
}; };
#endif #endif

View file

@ -86,10 +86,10 @@ void FG3DCloudsListener::valueChanged( SGPropertyNode * node )
FGEnvironmentMgr::FGEnvironmentMgr () : FGEnvironmentMgr::FGEnvironmentMgr () :
_environment(new FGEnvironment()), _environment(new FGEnvironment()),
_multiplayerListener(nullptr), _multiplayerListener(nullptr),
nearestAirport(nullptr), _sky(globals->get_renderer()->getSky()),
nearestCarrier(nullptr), nearestCarrier(nullptr),
_sky(globals->get_renderer()->getSky()) nearestAirport(nullptr)
{ {
fgClouds = new FGClouds; fgClouds = new FGClouds;
_3dCloudsEnableListener = new FG3DCloudsListener(fgClouds); _3dCloudsEnableListener = new FG3DCloudsListener(fgClouds);