ints can't be NULL
This commit is contained in:
parent
d34bcf0422
commit
2ba77f7f73
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue