Fix a bug when using properties instead of a fixed position

This commit is contained in:
Erik Hofman
2017-05-17 08:28:01 +02:00
parent 11ff1d256c
commit 446c8cd70c

View File

@@ -276,7 +276,7 @@ SGXmlSound::init( SGPropertyNode *root,
pos_prop[1] = root->getNode(pos_prop[1]->getStringValue(), true);
}
pos_prop[2] = prop->getChild("z");
if (pos_prop[2]) pos_prop[2] = pos_prop[1]->getNode("property");
if (pos_prop[2]) pos_prop[2] = pos_prop[2]->getNode("property");
if (pos_prop[2]) {
pos_prop[2] = root->getNode(pos_prop[2]->getStringValue(), true);
}