]> git.mxchange.org Git - flightgear.git/commitdiff
make sure that the validation nodes are readable and writable
authormfranz <mfranz>
Thu, 17 Jul 2008 08:38:13 +0000 (08:38 +0000)
committermfranz <mfranz>
Thu, 17 Jul 2008 08:38:13 +0000 (08:38 +0000)
src/Main/util.cxx

index 909cbad12657fb5f0daa46cc46792ad2e29dee52..e790e27e7adf3d0fcd5ac18e6b82aee4d730b0d0 100644 (file)
@@ -203,7 +203,12 @@ const char *fgValidatePath (const char *str, bool write)
     static SGPropertyNode_ptr r, w;
     if (!r) {
         r = fgGetNode("/sim/paths/validate/read", true);
+        r->setAttribute(SGPropertyNode::READ, true);
+        r->setAttribute(SGPropertyNode::WRITE, true);
+
         w = fgGetNode("/sim/paths/validate/write", true);
+        w->setAttribute(SGPropertyNode::READ, true);
+        w->setAttribute(SGPropertyNode::WRITE, true);
     }
     SGPropertyNode *prop = write ? w : r;
     prop->setStringValue(str);