From: mfranz Date: Sun, 1 May 2005 14:27:06 +0000 (+0000) Subject: don't crash if fgfs is called with an invalid argument to the --vor option X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b68429c86249b2111d2770aa5da3c02ae72e379c;p=flightgear.git don't crash if fgfs is called with an invalid argument to the --vor option --- 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]; }