From: ThorstenB Date: Thu, 22 Mar 2012 22:54:01 +0000 (+0100) Subject: Don't crash when "avionics == NULL". X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b55e9df70af59a936abec58782688c680f716385;p=simgear.git Don't crash when "avionics == NULL". --- 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;