1
0
Fork 0

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:
Ganael Laplanche 2018-09-01 22:27:07 +02:00
parent 09fdfe358c
commit ff69754756

View file

@ -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();