- fix issue 265
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-12-22 15:04:56 +00:00
parent b762a7e3a9
commit 2984bb7405
4 changed files with 9 additions and 2 deletions

View File

@@ -190,6 +190,7 @@ fault_line.txt
fire_tempest.txt
fists_of_ironwood.txt
flagstones.txt
flame_fusillade_i265.txt
flare.txt
fledgling_imp.txt
fledgling_imp2.txt

View File

@@ -447,13 +447,15 @@ public:
}
~GenericTargetAbility(){
if (isClone) SAFE_DELETE(ability);
SAFE_DELETE(ability);
}
GenericTargetAbility * clone() const{
GenericTargetAbility * a = NEW GenericTargetAbility(*this);
a->ability = ability->clone();
a->isClone = 1;
a->cost = NEW ManaCost();
a->cost->copy(cost);
if (tc) a->tc = tc->clone();
return a;
}

View File

@@ -12,6 +12,10 @@ int CardDescriptor::init(){
attacker = 0;
defenser = NULL;
banding = NULL;
//Remove unnecessary pointers
SAFE_DELETE(untapBlockers);
SAFE_DELETE(counters);
SAFE_DELETE(previous);
return result;
}