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 );
}
}