From b55e9df70af59a936abec58782688c680f716385 Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Thu, 22 Mar 2012 23:54:01 +0100 Subject: [PATCH] Don't crash when "avionics == NULL". --- simgear/sound/xmlsound.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5