From 05b1b16887bbac01036a04f731af689c8fbbec3f Mon Sep 17 00:00:00 2001 From: RickyRister Date: Tue, 17 Dec 2024 18:15:44 -0800 Subject: [PATCH] readd null check --- cockatrice/src/game/player/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cockatrice/src/game/player/player.cpp b/cockatrice/src/game/player/player.cpp index e828cc260..cfe72fd34 100644 --- a/cockatrice/src/game/player/player.cpp +++ b/cockatrice/src/game/player/player.cpp @@ -1365,7 +1365,7 @@ void Player::moveOneCardUntil(CardItem *card) { moveTopCardTimer->stop(); - const bool isMatch = movingCardsUntilFilter.check(card->getInfo()); + const bool isMatch = card && movingCardsUntilFilter.check(card->getInfo()); if (isMatch && movingCardsUntilAutoPlay) { // Directly calling playCard will deadlock, since we are already in the middle of processing an event.