Fix Torsten's crash. A completely cross-platform issue, no idea why it didn't show up in local testing.
This commit is contained in:
parent
41da00105c
commit
9e945e3408
1 changed files with 8 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue