From c025d354680248062ae7574dbfa8ae184658a54b Mon Sep 17 00:00:00 2001 From: cellos51 Date: Tue, 22 Jul 2025 20:07:51 -0400 Subject: [PATCH] null check on greedy joker --- source/joker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/joker.c b/source/joker.c index 8af79c0..b765690 100644 --- a/source/joker.c +++ b/source/joker.c @@ -71,7 +71,7 @@ JokerEffect joker_get_score_effect(Joker *joker, Card *scored_card) effect.mult = 4; break; case GREEDY_JOKER_ID: // Greedy Joker - if (scored_card->suit == DIAMONDS) // If the scored card is a diamond + if (scored_card != NULL && scored_card->suit == DIAMONDS) // If the scored card is a diamond { effect.mult = 3; }