]> git.mxchange.org Git - flightgear.git/blobdiff - src/Autopilot/newauto.cxx
Major property-manager rewrite, using const char * throughout
[flightgear.git] / src / Autopilot / newauto.cxx
index fb9a37814f4f9b5ffb5b04b751c6c542cca47732..a142a4874c17c4d7bc568b2163a6ac6bda36d716 100644 (file)
@@ -34,6 +34,7 @@
 #include <simgear/debug/logstream.hxx>
 #include <simgear/math/sg_geodesy.hxx>
 #include <simgear/math/sg_random.h>
+#include <simgear/route/route.hxx>
 
 #include <Cockpit/steam.hxx>
 #include <Cockpit/radiostack.hxx>
@@ -375,7 +376,7 @@ void FGAutopilot::reset() {
        
     update_old_control_values();
 
-    sprintf( NewTgtAirportId, "%s", fgGetString("/sim/startup/airport-id").c_str() );
+    sprintf( NewTgtAirportId, "%s", fgGetString("/sim/startup/airport-id") );
        
     MakeTargetLatLonStr( get_TargetLatitude(), get_TargetLongitude() );
 }