]> git.mxchange.org Git - flightgear.git/commitdiff
Csaba/Jester : fix an incorrect string comparison in metar
authorfredb <fredb>
Sat, 13 Dec 2008 06:08:22 +0000 (06:08 +0000)
committerfredb <fredb>
Sat, 13 Dec 2008 06:08:22 +0000 (06:08 +0000)
src/Environment/environment_ctrl.cxx

index 4a5bd263339cac721458b46a1c72b94de163169b..bbc3887641cf64d72ececdc36bdd67339ce4a343 100644 (file)
@@ -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