Address weird crash case

This commit is contained in:
Zach Halpern 2024-12-03 20:41:48 -05:00
parent 39b5e3c758
commit e2ffb242fa

View file

@ -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;
}