mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 01:12:15 -07:00
readd null check
This commit is contained in:
parent
7022e37c1e
commit
05b1b16887
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue