]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/kr_87.cxx
Merge branch 'next' into durk-atc
[flightgear.git] / src / Instrumentation / kr_87.cxx
index eab9bf69b3097a08207db812c2b5bd652254fd2b..30c0cbe6694270b0a6fa6ffc034672b4c7d79435 100644 (file)
@@ -32,7 +32,6 @@
 #include <simgear/math/sg_geodesy.hxx>
 #include <simgear/timing/sg_time.hxx>
 
-#include <Aircraft/aircraft.hxx>
 #include <Navaids/navlist.hxx>
 
 #include "kr_87.hxx"
@@ -117,8 +116,9 @@ FGKR_87::~FGKR_87() {
 
 
 void FGKR_87::init () {
-    SGSoundMgr *smgr = (SGSoundMgr *)globals->get_subsystem("soundmgr");
+    SGSoundMgr *smgr = globals->get_soundmgr();
     _sgr = smgr->find("avionics", true);
+    _sgr->tie_to_listener();
     morse.init();
 }