From 8d4a838cd5ddd38069fc6338dd928757259b818c Mon Sep 17 00:00:00 2001 From: Csaba Halasz Date: Fri, 27 Nov 2009 20:05:16 +0100 Subject: [PATCH] Initialize eta and dist_out members in TowerPlaneRec --- src/ATCDCL/tower.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ATCDCL/tower.cxx b/src/ATCDCL/tower.cxx index d1886c338..fa54b15cf 100644 --- a/src/ATCDCL/tower.cxx +++ b/src/ATCDCL/tower.cxx @@ -55,6 +55,8 @@ using std::cout; TowerPlaneRec::TowerPlaneRec() : planePtr(NULL), + eta(0), + dist_out(0), clearedToLand(false), clearedToLineUp(false), clearedToTakeOff(false), @@ -85,6 +87,8 @@ TowerPlaneRec::TowerPlaneRec() : TowerPlaneRec::TowerPlaneRec(const PlaneRec& p) : planePtr(NULL), + eta(0), + dist_out(0), clearedToLand(false), clearedToLineUp(false), clearedToTakeOff(false), @@ -115,6 +119,8 @@ TowerPlaneRec::TowerPlaneRec(const PlaneRec& p) : TowerPlaneRec::TowerPlaneRec(const SGGeod& pt) : planePtr(NULL), + eta(0), + dist_out(0), clearedToLand(false), clearedToLineUp(false), clearedToTakeOff(false), @@ -146,6 +152,8 @@ TowerPlaneRec::TowerPlaneRec(const SGGeod& pt) : TowerPlaneRec::TowerPlaneRec(const PlaneRec& p, const SGGeod& pt) : planePtr(NULL), + eta(0), + dist_out(0), clearedToLand(false), clearedToLineUp(false), clearedToTakeOff(false), @@ -2125,6 +2133,7 @@ void FGTower::VFRArrivalContact(const string& ID, const LandingType& opt) { t->plane.type = GA_SINGLE; // FIXME - Another assumption! t->plane.callsign = usercall; + CalcETA(t); t->vfrArrivalReported = true; responseReqd = true;