- 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
+1
View File
@@ -190,6 +190,7 @@ fault_line.txt
fire_tempest.txt fire_tempest.txt
fists_of_ironwood.txt fists_of_ironwood.txt
flagstones.txt flagstones.txt
flame_fusillade_i265.txt
flare.txt flare.txt
fledgling_imp.txt fledgling_imp.txt
fledgling_imp2.txt fledgling_imp2.txt
+4 -2
View File
@@ -447,13 +447,15 @@ public:
} }
~GenericTargetAbility(){ ~GenericTargetAbility(){
if (isClone) SAFE_DELETE(ability); SAFE_DELETE(ability);
} }
GenericTargetAbility * clone() const{ GenericTargetAbility * clone() const{
GenericTargetAbility * a = NEW GenericTargetAbility(*this); GenericTargetAbility * a = NEW GenericTargetAbility(*this);
a->ability = ability->clone(); a->ability = ability->clone();
a->isClone = 1; a->cost = NEW ManaCost();
a->cost->copy(cost);
if (tc) a->tc = tc->clone();
return a; return a;
} }
+4
View File
@@ -12,6 +12,10 @@ int CardDescriptor::init(){
attacker = 0; attacker = 0;
defenser = NULL; defenser = NULL;
banding = NULL; banding = NULL;
//Remove unnecessary pointers
SAFE_DELETE(untapBlockers);
SAFE_DELETE(counters);
SAFE_DELETE(previous);
return result; return result;
} }