From 446c8cd70c0083685d20c69612d55c399c395d4a Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Wed, 17 May 2017 08:28:01 +0200 Subject: [PATCH] Fix a bug when using properties instead of a fixed position --- 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 59a75aa1..7bb25c89 100644 --- a/simgear/sound/xmlsound.cxx +++ b/simgear/sound/xmlsound.cxx @@ -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); }