tmp
This commit is contained in:
parent
613874b13a
commit
9af73a9de8
1 changed files with 1 additions and 2 deletions
|
|
@ -37,8 +37,7 @@ void Link::removeOutgoingLinks() {
|
|||
auto& links = target->mIncomingLinks;
|
||||
links.erase(std::remove_if(links.begin(), links.end(), [&](std::weak_ptr<Link>& node){
|
||||
auto targetLink = node.lock();
|
||||
assert(targetLink);
|
||||
return targetLink.get() == this;
|
||||
return !targetLink || targetLink.get() == this;
|
||||
}), links.end());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue