[deploy] fix: Actor::RemoveAllChildren not work
This commit is contained in:
parent
4ee5653422
commit
4587e5a148
|
|
@ -611,7 +611,12 @@ void Actor::RemoveChildren(const String& child_name)
|
|||
|
||||
void Actor::RemoveAllChildren()
|
||||
{
|
||||
children_.Clear();
|
||||
ActorPtr next;
|
||||
for (ActorPtr child = children_.GetFirst(); child; child = next)
|
||||
{
|
||||
next = child->GetNext();
|
||||
RemoveChild(child);
|
||||
}
|
||||
}
|
||||
|
||||
bool Actor::ContainsPoint(const Point& point) const
|
||||
|
|
|
|||
Loading…
Reference in New Issue