Line 0
Link Here
|
|
|
1 |
Fix build with clang 7: |
2 |
|
3 |
src/AIModel/AIFlightPlanCreatePushBack.cxx:96:48: error: ordered comparison between pointer and zero ('FGTaxiNode *' and 'int') |
4 |
|
5 |
--- src/AIModel/AIFlightPlanCreatePushBack.cxx.orig 2018-08-17 09:14:25.768512000 +0200 |
6 |
+++ src/AIModel/AIFlightPlanCreatePushBack.cxx 2018-08-17 09:14:44.343865000 +0200 |
7 |
@@ -93,7 +93,7 @@ |
8 |
|
9 |
FGGroundNetwork* groundNet = dep->groundNetwork(); |
10 |
FGParking *parking = gate.parking(); |
11 |
- if (parking && parking->getPushBackPoint() > 0) { |
12 |
+ if (parking && parking->getPushBackPoint() != NULL) { |
13 |
FGTaxiRoute route = groundNet->findShortestRoute(parking, parking->getPushBackPoint(), false); |
14 |
|
15 |
int size = route.size(); |