]> git.mxchange.org Git - flightgear.git/blobdiff - src/Airports/apt_loader.cxx
Add a lower-bound type navaid lookup, and the ability to specify navaid type in the...
[flightgear.git] / src / Airports / apt_loader.cxx
index f0ab3afabc9d9efaf6e9101a5d76f2779ecf4344..4ea968d731cfbdcb01b8620ad3a5e72dd1070ece 100644 (file)
@@ -243,10 +243,8 @@ bool fgAirportDBLoad( FGAirportList *airports, FGRunwayList *runways,
         if ( ident == "#" || ident == "//" ) {
             metar_in >> skipeol;
         } else {
-            const FGAirport &a = airports->search( ident );
-            if ( a.getId() == ident ) {
-                airports->has_metar( ident );
-            }
+            const FGAirport* a = airports->search( ident );
+            if ( a ) airports->has_metar( ident );
         }
     }