add a nulcheck in the card item animation timer

This commit is contained in:
ebbit1q 2026-03-25 00:39:33 +01:00
parent 94ea574c76
commit ae49accea2

View file

@ -460,6 +460,9 @@ void CardItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
bool CardItem::animationEvent()
{
if (owner == nullptr) {
return false;
}
int rotation = ROTATION_DEGREES_PER_FRAME;
bool animationIncomplete = true;
if (!tapped)