diff --git a/src/Navaids/navlist.cxx b/src/Navaids/navlist.cxx index 7f8cb72bb..80ba3c897 100644 --- a/src/Navaids/navlist.cxx +++ b/src/Navaids/navlist.cxx @@ -167,7 +167,7 @@ FGNavRecord *FGNavList::findByIdentAndFreq( const char* ident, const double freq return stations[i]; } } - } else { + } else if (stations.size()) { return stations[0]; }