Forgot switch's breaks.
This commit is contained in:
parent
0ea190c39f
commit
042b45f36a
@ -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, "?");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user