Forgot switch's breaks.

This commit is contained in:
Murilo Soares Pereira 2010-04-03 15:24:10 -03:00
parent 0ea190c39f
commit 042b45f36a

View File

@ -10,10 +10,10 @@ char *card_suit(enum suit suit) {
card_suit = malloc(5 * sizeof(card_suit));
switch(suit) {
case DIAMONDS: strcpy(card_suit, DIAMONDS_SYMBOL);
case SPADES: strcpy(card_suit, SPADES_SYMBOL);
case HEARTS: strcpy(card_suit, HEARTS_SYMBOL);
case CLUBS: strcpy(card_suit, CLUBS_SYMBOL);
case DIAMONDS: strcpy(card_suit, DIAMONDS_SYMBOL); break;
case SPADES: strcpy(card_suit, SPADES_SYMBOL); break;
case HEARTS: strcpy(card_suit, HEARTS_SYMBOL); break;
case CLUBS: strcpy(card_suit, CLUBS_SYMBOL); break;
default: strcpy(card_suit, "?");
}