]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/props.cxx
SG_ namespace
[flightgear.git] / src / Network / props.cxx
index f249f23b8524a8e49e81c91ef08b8a34fcdeba59..1a42c8d62f536f03c7ea64b815c92222efa53f20 100644 (file)
@@ -35,8 +35,8 @@
 
 #include "props.hxx"
 
-FG_USING_STD(cout);
-FG_USING_STD(istrstream);
+SG_USING_STD(cout);
+SG_USING_STD(istrstream);
 
 FGProps::FGProps() {
 }
@@ -155,7 +155,8 @@ bool FGProps::process_command( const char *cmd ) {
        } else {
            SGPropertyNode *child = node->getNode(tokens[1]);
            if ( child ) {
-               path = child->getPath();
+               node = child;
+               path = node->getPath();
            } else {
                tokens[1] += " Not Found\n";
                io->writestring( tokens[1].c_str() );