mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-29 22:21:37 -08:00
add extra null check to set active card (#4460)
This commit is contained in:
@@ -1420,6 +1420,9 @@ void TabGame::setActiveCard(CardItem *card)
|
||||
|
||||
void TabGame::updateCardMenu(AbstractCardItem *card)
|
||||
{
|
||||
if (card == nullptr) {
|
||||
return;
|
||||
}
|
||||
Player *player;
|
||||
if ((clients.size() > 1) || !players.contains(localPlayerId)) {
|
||||
player = card->getOwner();
|
||||
|
||||
Reference in New Issue
Block a user