1
0
Fork 0

Fix a bug resulting from my marker-beacon refactoring. Thanks to Yon Uriarte

for spotting the problem.
This commit is contained in:
jmt 2009-01-04 09:41:52 +00:00 committed by Tim Moore
parent 030742fa4a
commit b0b6a0d998

View file

@ -66,7 +66,7 @@ static FGNavRecord* createNavFromStream(std::istream& aStream)
{ {
int rawType; int rawType;
aStream >> rawType; aStream >> rawType;
if (aStream.eof()) { if (aStream.eof() || (rawType == 99)) {
return NULL; // happens with, eg, carrier_nav.dat return NULL; // happens with, eg, carrier_nav.dat
} }