1
0
Fork 0

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:
jmt 2009-01-09 13:15:03 +00:00 committed by Tim Moore
parent 41da00105c
commit 9e945e3408

View file

@ -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) {