fix a coredump situation, discovered by Melchior.
This commit is contained in:
parent
75ab8e697b
commit
d4e760efe1
@ -927,7 +927,8 @@ SGPropertyNode::removeChild (const char * name, int index, bool keep)
|
||||
if (keep) {
|
||||
_removedChildren.push_back(node);
|
||||
}
|
||||
_path_cache->erase(name); // EMH - TODO: Take "index" into account!
|
||||
if (_path_cache)
|
||||
_path_cache->erase(name); // EMH - TODO: Take "index" into account!
|
||||
node->setAttribute(REMOVED, true);
|
||||
node->clearValue();
|
||||
ret = node;
|
||||
|
Loading…
Reference in New Issue
Block a user