diff --git a/simgear/sound/xmlsound.cxx b/simgear/sound/xmlsound.cxx index f680f47a..2b914d59 100644 --- a/simgear/sound/xmlsound.cxx +++ b/simgear/sound/xmlsound.cxx @@ -269,7 +269,7 @@ SGXmlSound::init(SGPropertyNode *root, SGPropertyNode *node, // // Initialize the sample // - if (is_avionics) { + if ((is_avionics)&&(avionics)) { _sgrp = avionics; } else { _sgrp = sgrp;