don't crash if fgfs is called with an invalid argument to the --vor option
This commit is contained in:
parent
4c10ef139c
commit
b68429c862
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ FGNavRecord *FGNavList::findByIdentAndFreq( const char* ident, const double freq
|
|||
return stations[i];
|
||||
}
|
||||
}
|
||||
} else {
|
||||
} else if (stations.size()) {
|
||||
return stations[0];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue