From 6bb8e69b92ce593aede6cf8ecb466c6407579d11 Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Sun, 30 Jan 2011 21:20:50 +0100 Subject: [PATCH] Initialize class member in AIFlightPlan --- src/AIModel/AIFlightPlan.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/AIModel/AIFlightPlan.cxx b/src/AIModel/AIFlightPlan.cxx index 132858850..914f5442c 100644 --- a/src/AIModel/AIFlightPlan.cxx +++ b/src/AIModel/AIFlightPlan.cxx @@ -49,6 +49,7 @@ using std::cerr; FGAIFlightPlan::FGAIFlightPlan() { sid = 0; + wpt_iterator = waypoints.begin(); } FGAIFlightPlan::FGAIFlightPlan(const string& filename) @@ -176,6 +177,7 @@ FGAIFlightPlan::FGAIFlightPlan(FGAIAircraft *ac, else wpt->finished = false; waypoints.push_back(wpt); } // of node loop + wpt_iterator = waypoints.begin(); } catch (const sg_exception &e) { SG_LOG(SG_GENERAL, SG_WARN, "Error reading AI flight plan: " << e.getMessage() << " from " << e.getOrigin()); -- 2.39.5