fixed compilation for psp, ambiguous else warning.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user