From b68429c86249b2111d2770aa5da3c02ae72e379c Mon Sep 17 00:00:00 2001 From: mfranz Date: Sun, 1 May 2005 14:27:06 +0000 Subject: [PATCH] don't crash if fgfs is called with an invalid argument to the --vor option --- src/Navaids/navlist.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; } -- 2.39.2