Fix a crash in NavList
(Tests are good)
This commit is contained in:
parent
4f020602e6
commit
c2da881010
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue