]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/kr_87.cxx
Merge branch 'maint'
[flightgear.git] / src / Instrumentation / kr_87.cxx
index eab9bf69b3097a08207db812c2b5bd652254fd2b..41928a097f486c223b6cc224c0bac09c7ff9480c 100644 (file)
@@ -117,8 +117,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();
 }