mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Remove no longer used DISPOSE flag from CIntObject
This commit is contained in:
@@ -37,12 +37,7 @@ CIntObject::~CIntObject()
|
||||
deactivate();
|
||||
|
||||
while(!children.empty())
|
||||
{
|
||||
if(children.front()->recActions & DISPOSE)
|
||||
delete children.front();
|
||||
else
|
||||
removeChild(children.front());
|
||||
}
|
||||
removeChild(children.front());
|
||||
|
||||
if(parent_m)
|
||||
parent_m->removeChild(this);
|
||||
@@ -111,8 +106,6 @@ void CIntObject::disable()
|
||||
{
|
||||
if(isActive())
|
||||
deactivate();
|
||||
|
||||
recActions = DISPOSE;
|
||||
}
|
||||
|
||||
void CIntObject::enable()
|
||||
|
||||
Reference in New Issue
Block a user