]> git.mxchange.org Git - simgear.git/commitdiff
Minor changes to path caching.
authordavid <david>
Thu, 28 Feb 2002 14:37:00 +0000 (14:37 +0000)
committerdavid <david>
Thu, 28 Feb 2002 14:37:00 +0000 (14:37 +0000)
simgear/misc/props.cxx

index ebad665caa249234efb43c3dc55fe3a7c7352107..2889e29a2b393d1d9a3f6f23a88d8d4fce9826eb 100644 (file)
@@ -1338,7 +1338,8 @@ SGPropertyNode::getNode (const string &relative_path, bool create)
     vector<PathComponent> components;
     parse_path(relative_path, components);
     result = find_node(this, components, 0, create);
-    (*_path_cache)[relative_path] = result;
+    if (result != 0)
+      (*_path_cache)[relative_path] = result;
   }
   
   return result;