From: James Turner Date: Thu, 7 Jan 2016 04:27:33 +0000 (-0600) Subject: Fix a dumb AI traffic bug I introduced. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=704aba90410244f4e1f01f1f33f07ef0bcda2d3e;p=flightgear.git Fix a dumb AI traffic bug I introduced. --- diff --git a/src/AIModel/AIFlightPlanCreate.cxx b/src/AIModel/AIFlightPlanCreate.cxx index b396e280d..d93a74756 100644 --- a/src/AIModel/AIFlightPlanCreate.cxx +++ b/src/AIModel/AIFlightPlanCreate.cxx @@ -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