1
0
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:
Ivan Savenko
2024-08-09 15:50:37 +00:00
parent 4ff2894cf2
commit 220c5cb1d7
5 changed files with 2 additions and 12 deletions

View File

@@ -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()