From: Durk Talsma Date: Tue, 26 Jul 2011 16:28:34 +0000 (+0200) Subject: Fix broken constructor to prevent a segfault when deleting taxiroute during program... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=987a0fd1df97a96f4bc19802c86213cddb6bbf78;p=flightgear.git Fix broken constructor to prevent a segfault when deleting taxiroute during program shutdown. --- 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)