// case 1:
case 2: return FGPositioned::NDB;
case 3: return FGPositioned::VOR;
- case 4: return FGPositioned::LOC;
- case 5: return FGPositioned::ILS;
+ case 4: return FGPositioned::ILS;
+ case 5: return FGPositioned::LOC;
case 6: return FGPositioned::GS;
case 12:
case 13: return FGPositioned::DME;
return NULL;
}
- FGRunway* runway = apt->getRunwayByIdent(parts[1]);
- if (!runway) {
+ if (!apt->hasRunwayWithIdent(parts[1])) {
SG_LOG(SG_GENERAL, SG_WARN, "navaid " << aName << " associated with bogus runway ID:" << parts[1]);
return NULL;
}
- return runway;
+ return apt->getRunwayByIdent(parts[1]);
}