From 5b0f5bd90fd7fe2432cf57ca3cbaefe6d5a03938 Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Sat, 26 Jan 2013 18:50:28 +0000 Subject: [PATCH] fixed compilation for psp, ambiguous else warning. --- projects/mtg/src/MTGRules.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/mtg/src/MTGRules.cpp b/projects/mtg/src/MTGRules.cpp index 8125dab01..6a7ca9c03 100644 --- a/projects/mtg/src/MTGRules.cpp +++ b/projects/mtg/src/MTGRules.cpp @@ -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); } + } } }