From 461d89cb220b0151cbb0a45a04b0beaac3105f2b Mon Sep 17 00:00:00 2001 From: Christian Schmitt Date: Sun, 10 Mar 2013 01:24:57 +0100 Subject: [PATCH] Fix some uninitialized variables (found by valgrind) --- src/Airports/airport.cxx | 1 + src/GUI/MapWidget.cxx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Airports/airport.cxx b/src/Airports/airport.cxx index 89a98202e..201fc28d4 100644 --- a/src/Airports/airport.cxx +++ b/src/Airports/airport.cxx @@ -76,6 +76,7 @@ FGAirport::FGAirport( PositionedID aGuid, _dynamics(0), mTowerDataLoaded(false), mRunwaysLoaded(false), + mHelipadsLoaded(false), mTaxiwaysLoaded(false), mProceduresLoaded(false), mILSDataLoaded(false) diff --git a/src/GUI/MapWidget.cxx b/src/GUI/MapWidget.cxx index 4f1d952c0..80158939f 100644 --- a/src/GUI/MapWidget.cxx +++ b/src/GUI/MapWidget.cxx @@ -388,6 +388,7 @@ MapWidget::MapWidget(int x, int y, int maxX, int maxY) : _height = maxY - y; _hasPanned = false; _orthoAzimuthProject = false; + _magneticHeadings = false; MapData::setFont(legendFont); MapData::setPalette(colour);