From: Csaba Halasz Date: Fri, 27 Nov 2009 19:05:16 +0000 (+0100) Subject: Initialize eta and dist_out members in TowerPlaneRec X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8d4a838cd5ddd38069fc6338dd928757259b818c;p=flightgear.git Initialize eta and dist_out members in TowerPlaneRec --- 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;