]> git.mxchange.org Git - flightgear.git/commitdiff
Fix a dumb AI traffic bug I introduced.
authorJames Turner <zakalawe@mac.com>
Thu, 7 Jan 2016 04:27:33 +0000 (22:27 -0600)
committerJames Turner <zakalawe@mac.com>
Thu, 7 Jan 2016 04:27:33 +0000 (22:27 -0600)
src/AIModel/AIFlightPlanCreate.cxx

index b396e280d2c154d6c503d8f6b9629753685932e4..d93a74756f8fbe11af3185e2bf30de0b68d4fcca 100644 (file)
@@ -260,9 +260,9 @@ bool FGAIFlightPlan::createTakeoffTaxi(FGAIAircraft * ac, bool firstFlight,
 
     FGTaxiNodeRef runwayNode;
     if (gn->getVersion() > 0) {
-        FGTaxiNodeRef runwayNode = gn->findNearestNodeOnRunway(runwayTakeoff);
+        runwayNode = gn->findNearestNodeOnRunway(runwayTakeoff);
     } else {
-        FGTaxiNodeRef runwayNode = gn->findNearestNode(runwayTakeoff);
+        runwayNode = gn->findNearestNode(runwayTakeoff);
     }
 
     // A negative gateId indicates an overflow parking, use a