From cc37d8740c26f67693b9c64c31b8711822fd2c96 Mon Sep 17 00:00:00 2001 From: fredb Date: Sat, 13 Dec 2008 06:08:22 +0000 Subject: [PATCH] Csaba/Jester : fix an incorrect string comparison in metar --- src/Environment/environment_ctrl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5