fixed compilation for psp, ambiguous else warning.

This commit is contained in:
omegablast2002@yahoo.com
2013-01-26 18:50:28 +00:00
parent 3443c8d075
commit 5b0f5bd90f
+4
View File
@@ -2171,8 +2171,11 @@ WEvent * MTGDredgeRule::replace(WEvent * event)
{ {
MTGAbility * otherA = NULL; MTGAbility * otherA = NULL;
if(DR->DrawerOfCard == p) if(DR->DrawerOfCard == p)
{
if(DR->replacementAbility->oneShot) if(DR->replacementAbility->oneShot)
{
selection.push_back(DR->replacementAbility->clone()); selection.push_back(DR->replacementAbility->clone());
}
else else
{ {
otherA = NEW GenericAddToGame(game, game->mLayers->actionLayer()->getMaxId(),DR->replacementAbility->source,NULL,DR->replacementAbility->clone()); otherA = NEW GenericAddToGame(game, game->mLayers->actionLayer()->getMaxId(),DR->replacementAbility->source,NULL,DR->replacementAbility->clone());
@@ -2180,6 +2183,7 @@ WEvent * MTGDredgeRule::replace(WEvent * event)
} }
} }
} }
}
//there is a memleak here that i have no idea what causes it. //there is a memleak here that i have no idea what causes it.
dredgeAbility = NEW dredgeCard(game, game->mLayers->actionLayer()->getMaxId(), card,NULL); dredgeAbility = NEW dredgeCard(game, game->mLayers->actionLayer()->getMaxId(), card,NULL);