Fix broken constructor to prevent a segfault when deleting taxiroute during program shutdown.
This commit is contained in:
parent
dbceffeae8
commit
987a0fd1df
1 changed files with 13 additions and 3 deletions
|
@ -48,9 +48,19 @@ using std::cerr;
|
|||
|
||||
FGAIFlightPlan::FGAIFlightPlan()
|
||||
{
|
||||
sid = 0;
|
||||
wpt_iterator = waypoints.begin();
|
||||
isValid = true;
|
||||
rwy = 0;
|
||||
sid = 0;
|
||||
repeat = false;
|
||||
distance_to_go = 0;
|
||||
lead_distance = 0;
|
||||
start_time = 0;
|
||||
arrivalTime = 0;
|
||||
leg = 10;
|
||||
gateId = 0;
|
||||
lastNodeVisited = 0;
|
||||
taxiRoute = 0;
|
||||
wpt_iterator = waypoints.begin();
|
||||
isValid = true;
|
||||
}
|
||||
|
||||
FGAIFlightPlan::FGAIFlightPlan(const string& filename)
|
||||
|
|
Loading…
Add table
Reference in a new issue