From: fredb Date: Sat, 13 Dec 2008 06:08:22 +0000 (+0000) Subject: Csaba/Jester : fix an incorrect string comparison in metar X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cc37d8740c26f67693b9c64c31b8711822fd2c96;p=flightgear.git Csaba/Jester : fix an incorrect string comparison in metar --- diff --git a/src/Environment/environment_ctrl.cxx b/src/Environment/environment_ctrl.cxx index 4a5bd2633..bbc388764 100644 --- a/src/Environment/environment_ctrl.cxx +++ b/src/Environment/environment_ctrl.cxx @@ -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