TCAS: do not process invalid AI models
This commit is contained in:
parent
6077ef8cdd
commit
5f994c94b9
1 changed files with 4 additions and 2 deletions
|
@ -620,6 +620,8 @@ TCAS::ThreatDetector::checkThreat(int mode, const SGPropertyNode* pModel)
|
|||
#ifdef FEATURE_TCAS_DEBUG_THREAT_DETECTOR
|
||||
checkCount++;
|
||||
#endif
|
||||
if (!pModel->getBoolValue("valid"))
|
||||
return ThreatInvisible;
|
||||
|
||||
float velocityKt = pModel->getDoubleValue("velocities/true-airspeed-kt");
|
||||
|
||||
|
|
Loading…
Reference in a new issue