Minor changes to path caching.

This commit is contained in:
david
2002-02-28 14:37:00 +00:00
parent cc01f99acb
commit cc3d7ddee5

View 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;