]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATCDCL/atis.cxx
Fix bug 191, uninitialised HUD color.
[flightgear.git] / src / ATCDCL / atis.cxx
index ca9cfc7bc4ae3630c1cbee9260b9da674bb172eb..0747903de5b49ca9004bdf3514ec52dcbb11d196 100644 (file)
 using std::cout;
 using std::cout;
 using boost::ref;
-using boost::make_tuple;
+using boost::tie;
 
 FGATIS::FGATIS() :
-  transmission(""),
-  trans_ident(""),
   old_volume(0),
   atis_failed(false),
+  msg_OK(0),
   attention(0),
   _prev_display(0),
   refname("atis")
@@ -380,7 +379,7 @@ int FGATIS::GenTransmission(const int regen, const int special) {
   {
     double press, temp;
     
-    make_tuple(ref(press), ref(temp)) = PT_vs_hpt(_geod.getElevationM(), Psl*inHg, Tsl + freezing);
+    tie(press, temp) = PT_vs_hpt(_geod.getElevationM(), Psl*inHg, Tsl + freezing);
 #if 0
     SG_LOG(SG_ATC, SG_ALERT, "Field P: " << press << "  T: " << temp);
     SG_LOG(SG_ATC, SG_ALERT, "based on elev " << elev