]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/UFO.cxx
Merge branch 'vivian/train' into next
[flightgear.git] / src / FDM / UFO.cxx
index 81b532b5d78459c295ab0ca024ec3caa23f34209..e8a37fc7b727ebec08d5ceeee34c1512b6c741e2 100644 (file)
@@ -26,7 +26,6 @@
 #endif
 
 #include <simgear/math/sg_geodesy.hxx>
-#include <simgear/math/polar3d.hxx>
 
 #include <Aircraft/controls.hxx>
 #include <Main/globals.hxx>
@@ -155,7 +154,7 @@ void FGUFO::update( double dt ) {
     double yaw = fabs(rudder) < .2 ? 0.0 : rudder / (25 + fabs(speed) * .1);
 
     // update (lon/lat) position
-    double lat2, lon2, az2;
+    double lat2 = 0.0, lon2 = 0.0, az2 = 0.0;
     if ( fabs(speed) > SG_EPSILON ) {
         geo_direct_wgs_84 ( get_Altitude(),
                             get_Latitude() * SGD_RADIANS_TO_DEGREES,