diff --git a/src/Instrumentation/wxradar.cxx b/src/Instrumentation/wxradar.cxx index 7681cb4fe..8a27057fe 100644 --- a/src/Instrumentation/wxradar.cxx +++ b/src/Instrumentation/wxradar.cxx @@ -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;