mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-02 23:08:00 +03:00
Warn if removing a node fails
This commit is contained in:
parent
209e139aa8
commit
4c5992a0d5
1 changed files with 4 additions and 1 deletions
|
@ -182,7 +182,10 @@ namespace
|
||||||
void remove()
|
void remove()
|
||||||
{
|
{
|
||||||
for (RemoveVec::iterator it = mToRemove.begin(); it != mToRemove.end(); ++it)
|
for (RemoveVec::iterator it = mToRemove.begin(); it != mToRemove.end(); ++it)
|
||||||
it->second->removeChild(it->first);
|
{
|
||||||
|
if (!it->second->removeChild(it->first))
|
||||||
|
std::cerr << "error removing " << it->first->getName() << std::endl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue