]> git.mxchange.org Git - flightgear.git/commitdiff
Fix a bug resulting from my marker-beacon refactoring. Thanks to Yon Uriarte
authorjmt <jmt>
Sun, 4 Jan 2009 09:41:52 +0000 (09:41 +0000)
committerTim Moore <timoore@redhat.com>
Wed, 7 Jan 2009 09:27:18 +0000 (10:27 +0100)
for spotting the problem.

src/Navaids/navdb.cxx

index e6979ee9636fc30e2c531dc330bf766c508c1a90..2434171e3a8b64a53e3bc543ae7e84c54f68c3f5 100644 (file)
@@ -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
   }