Changed the owner of ManaCost in LifeorManaCost to itself

This commit is contained in:
pankdm
2013-10-18 06:37:31 +00:00
parent f7eded7417
commit 5c3eb2c405
3 changed files with 11 additions and 13 deletions

View File

@@ -8,7 +8,6 @@
#include "WEvent.h"
#include "MTGAbility.h"
#include "iterator"
#include <boost/scoped_ptr.hpp>
SUPPORT_OBJECT_ANALYTICS(ManaCost)
@@ -594,8 +593,7 @@ int ManaCost::getManaSymbols(int color)
LifeorManaCost * phyrexianMana = dynamic_cast<LifeorManaCost*>(extraCosts->costs[i]);
if (phyrexianMana)
{
boost::scoped_ptr<ManaCost> manaCost(phyrexianMana->getManaCost());
result += manaCost->getManaSymbols(color);
result += phyrexianMana->getManaCost()->getManaSymbols(color);
}
}
}