]> git.mxchange.org Git - simgear.git/blobdiff - simgear/props/props.cxx
Suppress unnecessary "failed alias" warnings
[simgear.git] / simgear / props / props.cxx
index 26a6c85e4891c366174fec1e3d7f362e11d6c44b..d690cbe66a55f00d246b863b742c3ccf2a9dad6c 100644 (file)
@@ -797,9 +797,11 @@ SGPropertyNode::alias (SGPropertyNode * target)
   else
   if (_type == props::ALIAS)
   {
+    if (_value.alias == target)
+        return true; // ok, identical alias requested
     SG_LOG(SG_GENERAL, SG_ALERT,
            "Failed to create alias at " << target->getPath() << ". "
-           "Source "<< getPath() << " is also an alias. Unsupported recursion.");
+           "Source "<< getPath() << " is already aliasing another property.");
   }
   else
   if (_tied)