From 704aba90410244f4e1f01f1f33f07ef0bcda2d3e Mon Sep 17 00:00:00 2001 From: James Turner Date: Wed, 6 Jan 2016 22:27:33 -0600 Subject: [PATCH] Fix a dumb AI traffic bug I introduced. --- src/AIModel/AIFlightPlanCreate.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5