Fixed memory leak introduced in #555

This commit is contained in:
xawotihs
2013-11-29 22:07:45 +01:00
parent bedd1e8da8
commit 4095676b6b

View File

@@ -5323,6 +5323,7 @@ int AEquip::unequip()
{
MTGAbility * a = currentAbilities[i];
if (dynamic_cast<AEquip *> (a) || dynamic_cast<ATeach *> (a) || dynamic_cast<AAConnect *> (a)
|| dynamic_cast<AANewTarget *> (AbilityFactory::getCoreAbility(a))
|| (a->aType == MTGAbility::STANDARD_TOKENCREATOR && a->oneShot))
{
SAFE_DELETE(a);