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