]> git.mxchange.org Git - flightgear.git/blobdiff - src/Environment/fgclouds.cxx
Port over remaining Point3D usage to the more type and unit safe SG* classes.
[flightgear.git] / src / Environment / fgclouds.cxx
index 91166dbabcc671a7266dc789b5f0f7e6eaf558c0..905ddfc4af4aa46952846ad893d94e9ca2e6bc1c 100644 (file)
@@ -465,7 +465,7 @@ void FGClouds::buildScenario( const string& scenario ) {
         if( station == "XXXX" )
             station_elevation_ft = fgGetDouble("/position/ground-elev-m", 0.0);
         else {
-            const FGAirport* a = globals->get_airports()->search( station );
+            const FGAirport* a = FGAirport::findByIdent(station);
             station_elevation_ft = (a ? a->getElevation() : 0.0);
         }