try to fix compilation

../projects/mtg/include/AllAbilities.h:706: error: suggest explicit
braces to avoid ambiguous 'else'
This commit is contained in:
Anthony Calosa
2016-06-11 21:44:33 +08:00
parent 0f74558892
commit 70bc60104f
+2 -4
View File
@@ -703,11 +703,9 @@ private:
else if (s == "morethanfourcards") else if (s == "morethanfourcards")
{ {
intValue = 0; intValue = 0;
if(card->playerTarget)//blackvise if ((card->playerTarget) && (card->playerTarget->game->hand->nb_cards - 4)>0)
if ((card->playerTarget->game->hand->nb_cards - 4)>0)
intValue = (card->playerTarget->game->hand->nb_cards - 4); intValue = (card->playerTarget->game->hand->nb_cards - 4);
else//viseling else if ((card->controller()->opponent()->game->hand->nb_cards - 4)>0)
if ((card->controller()->opponent()->game->hand->nb_cards - 4)>0)
intValue = (card->controller()->opponent()->game->hand->nb_cards - 4); intValue = (card->controller()->opponent()->game->hand->nb_cards - 4);
} }
else if (s == "powertotalinplay")//Count Total Power of Creatures you control... Formidable else if (s == "powertotalinplay")//Count Total Power of Creatures you control... Formidable