From b0b6a0d998bde7f0ebc0d6ed5b0f7a4ec91f3b64 Mon Sep 17 00:00:00 2001 From: jmt Date: Sun, 4 Jan 2009 09:41:52 +0000 Subject: [PATCH] Fix a bug resulting from my marker-beacon refactoring. Thanks to Yon Uriarte for spotting the problem. --- src/Navaids/navdb.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Navaids/navdb.cxx b/src/Navaids/navdb.cxx index e6979ee96..2434171e3 100644 --- a/src/Navaids/navdb.cxx +++ b/src/Navaids/navdb.cxx @@ -66,7 +66,7 @@ static FGNavRecord* createNavFromStream(std::istream& aStream) { int rawType; aStream >> rawType; - if (aStream.eof()) { + if (aStream.eof() || (rawType == 99)) { return NULL; // happens with, eg, carrier_nav.dat }