Csaba/Alexis : fix a NAN problem when wind is unspecified in a metar
This commit is contained in:
parent
fa769ee4e8
commit
12dc71a3c0
1 changed files with 2 additions and 0 deletions
|
@ -99,6 +99,8 @@ FGMetar::FGMetar(const string& icao, const string& proxy, const string& port, co
|
||||||
_wind_range_from = _wind_range_to = _wind_dir;
|
_wind_range_from = _wind_range_to = _wind_dir;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_wind_speed == SGMetarNaN)
|
||||||
|
_wind_speed = 0.0;
|
||||||
if (_gust_speed == SGMetarNaN)
|
if (_gust_speed == SGMetarNaN)
|
||||||
_gust_speed = 0.0;
|
_gust_speed = 0.0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue