Fix unbalanced save() restore() in cards (#3571)

This commit is contained in:
Rob Blanckaert 2019-02-08 05:24:55 -08:00 committed by ctrlaltca
parent e4bac025dd
commit b065ada633

View file

@ -142,7 +142,6 @@ void CardItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
if (getBeingPointedAt()) {
painter->fillRect(boundingRect(), QBrush(QColor(255, 0, 0, 100)));
painter->restore();
}
if (doesntUntap) {
@ -160,6 +159,8 @@ void CardItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
painter->restore();
}
painter->restore();
}
void CardItem::setAttacking(bool _attacking)