Don't crash when "avionics == NULL".

This commit is contained in:
ThorstenB
2012-03-22 23:54:01 +01:00
parent 986d2cc42a
commit b55e9df70a
+1 -1
View File
@@ -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;