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

View File

@@ -2171,13 +2171,17 @@ WEvent * MTGDredgeRule::replace(WEvent * event)
{
MTGAbility * otherA = NULL;
if(DR->DrawerOfCard == p)
{
if(DR->replacementAbility->oneShot)
{
selection.push_back(DR->replacementAbility->clone());
}
else
{
otherA = NEW GenericAddToGame(game, game->mLayers->actionLayer()->getMaxId(),DR->replacementAbility->source,NULL,DR->replacementAbility->clone());
selection.push_back(otherA);
}
}
}
}