]> git.mxchange.org Git - flightgear.git/blobdiff - src/Aircraft/aircraft.cxx
Roy Vegard Ovesen:
[flightgear.git] / src / Aircraft / aircraft.cxx
index 1fe90e128c82cc8dc2152da2a43e2896f4682fec..a3fcd9e47c0bd3029a4f7db932de9b9cf2b41ba2 100644 (file)
@@ -40,7 +40,6 @@
 #include <Cockpit/hud.hxx>
 #include <Cockpit/panel_io.hxx>
 #include <Model/acmodel.hxx>
-#include <Autopilot/newauto.hxx>
 
 #include "aircraft.hxx"
 
@@ -228,9 +227,9 @@ fgLoadAircraft (const SGPropertyNode * arg)
     //
     globals->get_viewmgr()->reinit();
     globals->get_controls()->reset_all();
-    globals->get_autopilot()->reset();
     globals->get_aircraft_model()->reinit();
     globals->get_subsystem("fx")->reinit();
+    globals->get_subsystem("xml-autopilot")->reinit();
 
     fgReInitSubsystems();