Removed compilation warnings.

This commit is contained in:
Xawotihs
2011-10-07 15:25:15 +00:00
parent c0c8688ede
commit 9f09bbeec3
3 changed files with 4 additions and 4 deletions

View File

@@ -35,7 +35,7 @@ int ActionLayer::removeFromGame(ActionElement * e)
if (i == -1)
return 0; //Should not happen, it means we deleted thesame object twice?
AbilityFactory af(observer);
if(MTGAbility * a = dynamic_cast<MTGAbility*>(e))
if(dynamic_cast<MTGAbility*>(e))
{
AManaProducer * manaObject = dynamic_cast<AManaProducer*>(af.getCoreAbility((MTGAbility*)e));
if(manaObject)