]> git.mxchange.org Git - flightgear.git/blobdiff - src/Model/acmodel.cxx
Expose a radio function (receiveBeacon) to the Nasal subsystem
[flightgear.git] / src / Model / acmodel.cxx
index 5c63963a98eaac3ff90cdac8f05068b138ebac13..3b0658b0a7173f82051da959778c729358c30a89 100644 (file)
@@ -1,4 +1,4 @@
-// model.cxx - manage a 3D aircraft model.
+// acmodel.cxx - manage a 3D aircraft model.
 // Written by David Megginson, started 2002.
 //
 // This file is in the Public Domain, and comes with no warranty.
@@ -84,12 +84,16 @@ void
 FGAircraftModel::reinit()
 {
   deinit();
+  _fx->reinit();
   init();
 }
 
 void
 FGAircraftModel::deinit()
 {
+  // drop reference
+  _fx = 0;
+
   if (!_aircraft) {
     return;
   }