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
src/Navaids
|
@ -203,7 +203,7 @@ FGNavRecordRef FGNavList::findByFreq( double freq,
|
||||||
|
|
||||||
BOOST_FOREACH(PositionedID id, stations) {
|
BOOST_FOREACH(PositionedID id, stations) {
|
||||||
FGNavRecordRef station = FGPositioned::loadById<FGNavRecord>(id);
|
FGNavRecordRef station = FGPositioned::loadById<FGNavRecord>(id);
|
||||||
if (!filter->pass(station)) {
|
if (filter && !filter->pass(station)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -93,7 +93,7 @@ public:
|
||||||
* so a position must be specified.
|
* so a position must be specified.
|
||||||
*/
|
*/
|
||||||
static FGNavRecordRef findByFreq( double freq, const SGGeod& position,
|
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
|
* Overloaded version above - no positioned supplied so can be used with
|
||||||
|
|
Loading…
Add table
Reference in a new issue