Fix null pointer dereference during startup
(may happen at other times, but definitely happened to me on startup)
This commit is contained in:
parent
8b25244d90
commit
54ba92afd8
1 changed files with 1 additions and 1 deletions
|
@ -446,7 +446,7 @@ void FGAIAircraft::assertSpeed(double speed)
|
||||||
|
|
||||||
void FGAIAircraft::checkTcas(void)
|
void FGAIAircraft::checkTcas(void)
|
||||||
{
|
{
|
||||||
if (tcasThreatNode->getIntValue()==3)
|
if (tcasThreatNode && tcasThreatNode->getIntValue()==3)
|
||||||
{
|
{
|
||||||
const int RASense = tcasRANode->getIntValue();
|
const int RASense = tcasRANode->getIntValue();
|
||||||
if ((RASense>0)&&(tgt_vs<4000)) {
|
if ((RASense>0)&&(tgt_vs<4000)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue