mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 17:32:15 -07:00
Address weird crash case
This commit is contained in:
parent
39b5e3c758
commit
e2ffb242fa
1 changed files with 2 additions and 2 deletions
|
|
@ -133,7 +133,7 @@ void CardZone::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
|||
void CardZone::addCard(CardItem *card, const bool reorganize, const int x, const int y)
|
||||
{
|
||||
if (!card) {
|
||||
qDebug() << "CardZone::addCard() card is null(???)";
|
||||
qDebug() << "CardZone::addCard() card is null, this shouldn't normally happen";
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -202,7 +202,7 @@ CardItem *CardZone::takeCard(int position, int cardId, bool /*canResize*/)
|
|||
void CardZone::removeCard(CardItem *card)
|
||||
{
|
||||
if (!card) {
|
||||
qDebug() << "CardZone::removeCard: card is null(???)";
|
||||
qDebug() << "CardZone::removeCard: card is null, this shouldn't normally happen";
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue