mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-09 15:54:47 -07:00
crash fix; weird behaviour fix
This commit is contained in:
parent
6253d92053
commit
1b286973dd
3 changed files with 10 additions and 3 deletions
|
|
@ -628,6 +628,9 @@ void Player::eventMoveCard(Event_MoveCard *event)
|
|||
if (!card)
|
||||
return;
|
||||
|
||||
if (card->getAttachedTo() && (startZone != targetZone))
|
||||
card->setAttachedTo(0);
|
||||
|
||||
card->deleteDragItem();
|
||||
|
||||
card->setId(event->getNewCardId());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue