Fix a bug resulting from my marker-beacon refactoring. Thanks to Yon Uriarte
for spotting the problem.
This commit is contained in:
parent
030742fa4a
commit
b0b6a0d998
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue