Fix build with clang 7 on FreeBSD 12-CURRENT:
src/AIModel/AIFlightPlanCreatePushBack.cxx:96:48: error: ordered comparison between pointer and zero ('FGTaxiNode *' and 'int') (see: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230502)
This commit is contained in:
parent
09fdfe358c
commit
ff69754756
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ bool FGAIFlightPlan::createPushBack(FGAIAircraft *ac,
|
|||
|
||||
FGGroundNetwork* groundNet = dep->groundNetwork();
|
||||
FGParking *parking = gate.parking();
|
||||
if (parking && parking->getPushBackPoint() > 0) {
|
||||
if (parking && parking->getPushBackPoint() != NULL) {
|
||||
FGTaxiRoute route = groundNet->findShortestRoute(parking, parking->getPushBackPoint(), false);
|
||||
|
||||
int size = route.size();
|
||||
|
|
Loading…
Reference in a new issue