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) {
|
if (keep) {
|
||||||
_removedChildren.push_back(node);
|
_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->setAttribute(REMOVED, true);
|
||||||
node->clearValue();
|
node->clearValue();
|
||||||
ret = node;
|
ret = node;
|
||||||
|
Loading…
Reference in New Issue
Block a user