1
0
Fork 0

Fix broken constructor to prevent a segfault when deleting taxiroute during program shutdown.

This commit is contained in:
Durk Talsma 2011-07-26 18:28:34 +02:00
parent dbceffeae8
commit 987a0fd1df

View file

@ -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)