Skip to content

Commit 32542df

Browse files
authored
Fix RTE code assignment not assigning STAR (#30)
1 parent 9856797 commit 32542df

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

AT3/AT3Tags.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,12 @@ void AT3Tags::SetRte(int index, CFlightPlan FlightPlan, vector<string> rteVec, s
145145

146146
if (fpRoute.find(starStr) == string::npos) {
147147
fpRoute = fpRoute + starStr;
148-
FlightPlan.GetFlightPlanData().SetRoute(fpRoute.c_str()); //assign STAR if not already assigned
148+
CFlightPlanData flightplan_data = FlightPlan.GetFlightPlanData();
149+
flightplan_data.SetRoute(fpRoute.c_str()); //assign STAR if not already assigned
150+
if (flightplan_data.IsAmended())
151+
{
152+
flightplan_data.AmendFlightPlan();
153+
}
149154
}
150155
}
151156
}

0 commit comments

Comments
 (0)