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:
NearestCarrierToNotification(SGGeod _comparisonPosition) : position(),
comparisonPosition(_comparisonPosition),
distanceMeters(std::numeric_limits<double>::max()),
carrier(0),
deckheight(0),
heading(0),
vckts(0)
vckts(0),
deckheight(0),
distanceMeters(std::numeric_limits<double>::max()),
carrier(0)
{
}

View file

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