]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/wxradar.cxx
one more gcc warning fix: xxx will be initialized after yyy
[flightgear.git] / src / Instrumentation / wxradar.cxx
index 7681cb4fe5964e5134941c87dd5ddedbe31231d5..8a27057fed894c78446c06fcce9c3ab7602b9380 100644 (file)
@@ -75,14 +75,14 @@ static const char *DEFAULT_FONT = "typewriter.txf";
 wxRadarBg::wxRadarBg(SGPropertyNode *node) :
     _name(node->getStringValue("name", "radar")),
     _num(node->getIntValue("number", 0)),
-    _interval(node->getDoubleValue("update-interval-sec", 1.0)),
     _time(0.0),
+    _interval(node->getDoubleValue("update-interval-sec", 1.0)),
     _sim_init_done(false),
     _odg(0),
     _last_switchKnob("off"),
+    _antenna_ht(node->getDoubleValue("antenna-ht-ft", 0.0)),
     _resultTexture(0),
-    _wxEcho(0),
-    _antenna_ht(node->getDoubleValue("antenna-ht-ft", 0.0))
+    _wxEcho(0)
 {
     string branch;
     branch = "/instrumentation/" + _name;
@@ -598,7 +598,7 @@ void
 wxRadarBg::update_aircraft()
 {
     double diff;
-    double age_factor;
+    double age_factor = 1.0;
     double test_rng;
     double test_brg;
     double range;