diff --git a/shared.c b/shared.c index aa45cc4..9c14e32 100644 --- a/shared.c +++ b/shared.c @@ -3398,7 +3398,7 @@ int getrandomcard(void) { if (cval == (getcardvalue(cardid)-1)) okay = B_TRUE; } } - if (player2) { + if (player2 && !okay) { for (i = 0; i < player2->numcards; i++) { cval = getcardvalue(player2->card[i]); csuit = getcardsuit(player2->card[i]);