mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-02 21:44:32 -05:00
add a nulcheck in the card item animation timer (#6740)
This commit is contained in:
parent
74cce5ccb2
commit
abf6e72ad1
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user