Fix memory leak in ATransforms ability

- Blame is on me for the bad design behind the "isClone" flag, I need to get rid of that flag in the long term.
This commit is contained in:
wagic.the.homebrew
2011-07-14 13:49:46 +00:00
parent bf416b0d36
commit 8c79e0644c
2 changed files with 1 additions and 3 deletions

View File

@@ -22,9 +22,8 @@ class ActionElement: public JGuiObject
{
protected:
int activeState;
public:
int isClone;
public:
TargetChooser * tc;
int currentPhase;
int newPhase;

View File

@@ -2561,7 +2561,6 @@ int ATransformer::addToGame()
MTGAbility * aNew = af.parseMagicLine(newAbilitiesList[k], 0, NULL, _target);
if(!aNew)
continue;
aNew->isClone = 1;
GenericTargetAbility * gta = dynamic_cast<GenericTargetAbility*> (aNew);
if (gta)
{