1
0
Fork 0

Fix a crash in NavList

(Tests are good)
This commit is contained in:
James Turner 2017-03-25 14:28:30 +00:00
parent 4f020602e6
commit c2da881010
2 changed files with 2 additions and 2 deletions

View file

@ -203,7 +203,7 @@ FGNavRecordRef FGNavList::findByFreq( double freq,
BOOST_FOREACH(PositionedID id, stations) {
FGNavRecordRef station = FGPositioned::loadById<FGNavRecord>(id);
if (!filter->pass(station)) {
if (filter && !filter->pass(station)) {
continue;
}

View file

@ -93,7 +93,7 @@ public:
* so a position must be specified.
*/
static FGNavRecordRef findByFreq( double freq, const SGGeod& position,
TypeFilter* filter = NULL);
TypeFilter* filter = nullptr);
/**
* Overloaded version above - no positioned supplied so can be used with