1
0
Fork 0

ints can't be NULL

This commit is contained in:
Torsten Dreyer 2019-08-01 17:29:12 +02:00
parent d34bcf0422
commit 2ba77f7f73

View file

@ -1179,8 +1179,8 @@ TCAS::TCAS(SGPropertyNode* pNode) :
string cval = pChild->getStringValue();
int cintval = pChild->getIntValue();
if (cintval < 0 || cintval == NULL) {
SG_LOG(SG_INSTR, SG_WARN, "Error in TCAS config logic: value less than zero or nil. Skipping!");
if (cintval < 0 ) {
SG_LOG(SG_INSTR, SG_WARN, "Error in TCAS config logic: value less than zero. Skipping!");
}
if (cname == "name")