Fix a bug when using properties instead of a fixed position
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user