From 987a0fd1df97a96f4bc19802c86213cddb6bbf78 Mon Sep 17 00:00:00 2001 From: Durk Talsma Date: Tue, 26 Jul 2011 18:28:34 +0200 Subject: [PATCH] Fix broken constructor to prevent a segfault when deleting taxiroute during program shutdown. --- src/AIModel/AIFlightPlan.cxx | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/AIModel/AIFlightPlan.cxx b/src/AIModel/AIFlightPlan.cxx index 2fa5c3609..fb6da0c5c 100644 --- a/src/AIModel/AIFlightPlan.cxx +++ b/src/AIModel/AIFlightPlan.cxx @@ -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) -- 2.39.5