mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-06 14:22:33 +00:00
Use std::vector instead of std::list for RenderObject children
This commit is contained in:
parent
35c8086802
commit
300f326777
5 changed files with 18 additions and 70 deletions
|
@ -1144,16 +1144,10 @@ void SkeletalSprite::prevAnimation()
|
|||
void SkeletalSprite::deleteBones()
|
||||
{
|
||||
bones.clear();
|
||||
if (!children.empty())
|
||||
for(Children::iterator it = children.begin(); it != children.end(); ++it)
|
||||
{
|
||||
// remove child had better be recursive
|
||||
Bone *b = (Bone*)children.front();
|
||||
//removeChild(b);
|
||||
b->destroy();
|
||||
delete b;
|
||||
deleteBones();
|
||||
(*it)->safeKill();
|
||||
}
|
||||
children.clear();
|
||||
bones.clear();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue