Commit d2331518 authored by Max-Wilhelm Bruker's avatar Max-Wilhelm Bruker
Browse files

minor attach bug fix

parent 99c0a41d
......@@ -807,9 +807,12 @@ void Player::eventMoveCard(Event_MoveCard *event)
return;
card->setName(event->getCardName());
if (card->getAttachedTo() && (startZone != targetZone))
if (card->getAttachedTo() && (startZone != targetZone)) {
CardItem *parentCard = card->getAttachedTo();
card->setAttachedTo(0);
parentCard->getZone()->reorganizeCards();
}
card->deleteDragItem();
card->setId(event->getNewCardId());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment