TCAS: add default value when checking valid flag
This commit is contained in:
parent
19b19f05bd
commit
6ff4805361
1 changed files with 1 additions and 1 deletions
|
@ -620,7 +620,7 @@ TCAS::ThreatDetector::checkThreat(int mode, const SGPropertyNode* pModel)
|
|||
#ifdef FEATURE_TCAS_DEBUG_THREAT_DETECTOR
|
||||
checkCount++;
|
||||
#endif
|
||||
if (!pModel->getBoolValue("valid"))
|
||||
if (!pModel->getBoolValue("valid", true))
|
||||
return ThreatInvisible;
|
||||
|
||||
float velocityKt = pModel->getDoubleValue("velocities/true-airspeed-kt");
|
||||
|
|
Loading…
Reference in a new issue