diff --git a/src/Navaids/positioned.cxx b/src/Navaids/positioned.cxx index 133dc7a41..d1e34373e 100644 --- a/src/Navaids/positioned.cxx +++ b/src/Navaids/positioned.cxx @@ -554,8 +554,14 @@ FGPositioned::findNextWithPartialId(FGPositionedRef aCur, const std::string& aId continue; } - if (aFilter && !aFilter->pass(candidate)) { - continue; + if (aFilter) { + if (aFilter->hasTypeRange() && !aFilter->passType(candidate->type())) { + continue; + } + + if(!aFilter->pass(candidate)) { + continue; + } } if (!aCur) {