This commit is contained in:
parent
880c7dea9a
commit
45958bf2b5
4 changed files with 28 additions and 2 deletions
|
@ -582,6 +582,30 @@ CThing *List=Next;
|
|||
m_numChildren = 0;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Function:
|
||||
Purpose:
|
||||
Params:
|
||||
Returns:
|
||||
---------------------------------------------------------------------- */
|
||||
void CThing::deleteAllChild()
|
||||
{
|
||||
CThing *List=Next;
|
||||
|
||||
while (List)
|
||||
{
|
||||
CThing *Next=List->Next;
|
||||
List->Parent=NULL;
|
||||
List->Next=NULL;
|
||||
List->shutdown();
|
||||
delete List;
|
||||
List=Next;
|
||||
}
|
||||
Next=NULL;
|
||||
|
||||
m_numChildren = 0;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Function:
|
||||
Purpose:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue