From f61dbf138260b643a4e4cf71e68b2b3990634ace Mon Sep 17 00:00:00 2001 From: daveluff Date: Tue, 3 Jun 2003 14:08:24 +0000 Subject: [PATCH] Explicitly initialise aptElev --- src/ATC/ground.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ATC/ground.cxx b/src/ATC/ground.cxx index 526aec07e..9c78282fb 100644 --- a/src/ATC/ground.cxx +++ b/src/ATC/ground.cxx @@ -61,6 +61,9 @@ FGGround::FGGround() { // Init the property nodes - TODO - need to make sure we're getting surface winds. wind_from_hdg = fgGetNode("/environment/wind-from-heading-deg", true); wind_speed_knots = fgGetNode("/environment/wind-speed-kts", true); + + // TODO - get the actual airport elevation + aptElev = 0.0; } FGGround::FGGround(string id) { @@ -74,6 +77,9 @@ FGGround::FGGround(string id) { // Init the property nodes - TODO - need to make sure we're getting surface winds. wind_from_hdg = fgGetNode("/environment/wind-from-heading-deg", true); wind_speed_knots = fgGetNode("/environment/wind-speed-kts", true); + + // TODO - get the actual airport elevation + aptElev = 0.0; } FGGround::~FGGround() { -- 2.39.5