src/prefab.cpp
void Node::removeChildren()
{
	for (int i = 0; i < children.size(); ++i)
	{
		children[i]->parent = NULL;
		delete children[i];
	}
	children.clear();
}
//deletes every children in a safe way

deletes every children in a safe way
deletes every children in a safe way
void Node::removeChildren()
{
	for (int i = 0; i < children.size(); ++i)
	{
		children[i]->parent = NULL;
		delete children[i];
	}
	children.clear();
}
void Node :: removeChildren ( ) { for ( int i = 0 ; i < children . size ( ) ; ++ i ) { children [ i ] -> parent = NULL ; delete children [ i ] ; } children . clear ( ) ; }
deletes every children in a safe way
deletes every children in a safe way