Csaba/Jester : fix an incorrect string comparison in metar
This commit is contained in:
parent
0dd1c66f95
commit
cc37d8740c
1 changed files with 1 additions and 1 deletions
|
@ -407,7 +407,7 @@ FGMetarEnvironmentCtrl::update_env_config ()
|
|||
double dewpoint;
|
||||
|
||||
// If we aren't in the METAR scenario, don't attempt to interpolate.
|
||||
if (fgGetString("/environment/weather-scenario", "METAR") != "METAR") return;
|
||||
if (strcmp(fgGetString("/environment/weather-scenario", "METAR"), "METAR")) return;
|
||||
|
||||
if (metar_loaded) {
|
||||
// Generate interpolated values between the METAR and the current
|
||||
|
|
Loading…
Add table
Reference in a new issue