1
0
Fork 0

TCAS: add default value when checking valid flag

This commit is contained in:
ThorstenB 2017-11-19 15:24:27 +01:00
parent 19b19f05bd
commit 6ff4805361

View file

@ -620,7 +620,7 @@ TCAS::ThreatDetector::checkThreat(int mode, const SGPropertyNode* pModel)
#ifdef FEATURE_TCAS_DEBUG_THREAT_DETECTOR #ifdef FEATURE_TCAS_DEBUG_THREAT_DETECTOR
checkCount++; checkCount++;
#endif #endif
if (!pModel->getBoolValue("valid")) if (!pModel->getBoolValue("valid", true))
return ThreatInvisible; return ThreatInvisible;
float velocityKt = pModel->getDoubleValue("velocities/true-airspeed-kt"); float velocityKt = pModel->getDoubleValue("velocities/true-airspeed-kt");