diff options
Diffstat (limited to 'card.cpp')
-rw-r--r-- | card.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -101,6 +101,12 @@ enum Suit Card::getSuit(void) void Card::sortCards(Card **cards) { + if (cards == NULL) + { + PRINT_COLOR(ANSI_COLOR_RED, "\nsortCards(): cards parameter is NULL!\n"); + return; + } + /* reverse bubble sort */ int i, j; Card *tmp; |