1
0
Fork 0

Fix null pointer dereference during startup

(may happen at other times, but definitely happened to me on startup)
This commit is contained in:
Richard Harrison 2018-09-25 16:53:06 +02:00
parent 8b25244d90
commit 54ba92afd8

View file

@ -446,7 +446,7 @@ void FGAIAircraft::assertSpeed(double speed)
void FGAIAircraft::checkTcas(void)
{
if (tcasThreatNode->getIntValue()==3)
if (tcasThreatNode && tcasThreatNode->getIntValue()==3)
{
const int RASense = tcasRANode->getIntValue();
if ((RASense>0)&&(tgt_vs<4000)) {