From: mfranz Date: Sat, 9 Jun 2007 10:15:50 +0000 (+0000) Subject: use getNode instead of hasValue (it's just a dir node and doesn't need a value) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dbdfc9012b2b6ab1f0c277713dffc691cc87a80a;p=flightgear.git use getNode instead of hasValue (it's just a dir node and doesn't need a value) --- diff --git a/src/Main/fg_commands.cxx b/src/Main/fg_commands.cxx index b5341f8f5..fad5cfada 100644 --- a/src/Main/fg_commands.cxx +++ b/src/Main/fg_commands.cxx @@ -1369,7 +1369,7 @@ do_save_xml_from_proptree(const SGPropertyNode * node) SGPropertyNode * sourcenode; if (node->hasValue("sourcenode")) sourcenode = fgGetNode(node->getStringValue("sourcenode"), true); - else if (node->hasValue("data")) + else if (node->getNode("data", false)) sourcenode = const_cast(node)->getNode("data"); else return false;