]> git.mxchange.org Git - simgear.git/commitdiff
Small bugfix, the previous test always sets _property (these days)
authorErik Hofman <erik@ehofman.com>
Tue, 27 Jul 2010 12:51:44 +0000 (14:51 +0200)
committerErik Hofman <erik@ehofman.com>
Tue, 27 Jul 2010 12:51:44 +0000 (14:51 +0200)
simgear/sound/xmlsound.cxx

index 479e312361d34c7bd631e1266a7034f6f2cf4a0a..2a3cbfac3adb5613da0f538ecbb6b8a40515d99c 100644 (file)
@@ -109,7 +109,10 @@ SGXmlSound::init(SGPropertyNode *root, SGPropertyNode *node,
    if ( !strcmp(type_str, "avionics") )
       is_avionics = true;
 
-   _property = root->getNode(node->getStringValue("property", ""), true);
+   string propval = node->getStringValue("property", "");
+   if (propval != "")
+      _property = root->getNode(propval, true);
+
    SGPropertyNode *condition = node->getChild("condition");
    if (condition != NULL)
       _condition = sgReadCondition(root, condition);