readd null check

This commit is contained in:
RickyRister 2024-12-17 18:15:44 -08:00
parent 7022e37c1e
commit 05b1b16887

View file

@ -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.