]> git.mxchange.org Git - flightgear.git/commitdiff
use getNode instead of hasValue (it's just a dir node and doesn't need a value)
authormfranz <mfranz>
Sat, 9 Jun 2007 10:15:50 +0000 (10:15 +0000)
committermfranz <mfranz>
Sat, 9 Jun 2007 10:15:50 +0000 (10:15 +0000)
src/Main/fg_commands.cxx

index b5341f8f5205439570e3315a8c92876e8ad7eac7..fad5cfada213689e46ab2d931a63efcef01617fd 100644 (file)
@@ -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<SGPropertyNode *>(node)->getNode("data");
     else
         return false;