From: david Date: Thu, 28 Feb 2002 14:37:00 +0000 (+0000) Subject: Minor changes to path caching. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cc3d7ddee5d0fc1e9786654d323f157980073ff2;p=simgear.git Minor changes to path caching. --- diff --git a/simgear/misc/props.cxx b/simgear/misc/props.cxx index ebad665c..2889e29a 100644 --- a/simgear/misc/props.cxx +++ b/simgear/misc/props.cxx @@ -1338,7 +1338,8 @@ SGPropertyNode::getNode (const string &relative_path, bool create) vector 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;