fixed compilation for psp, ambiguous else warning.
This commit is contained in:
@@ -2171,13 +2171,17 @@ 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());
|
||||||
selection.push_back(otherA);
|
selection.push_back(otherA);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user