diff --git a/cockatrice/src/game/board/arrow_item.cpp b/cockatrice/src/game/board/arrow_item.cpp index 61fab0b76..42fb20b5c 100644 --- a/cockatrice/src/game/board/arrow_item.cpp +++ b/cockatrice/src/game/board/arrow_item.cpp @@ -341,7 +341,9 @@ void ArrowAttachItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) if (targetItem && (targetItem != startItem)) { auto startCard = qgraphicsitem_cast(startItem); auto targetCard = qgraphicsitem_cast(targetItem); - attachCards(startCard, targetCard); + if (startCard && targetCard) { + attachCards(startCard, targetCard); + } } delArrow();