mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 00:24:47 -07:00
crash fix
This commit is contained in:
parent
8bd8b6218e
commit
6e567d5b2f
6 changed files with 34 additions and 26 deletions
|
|
@ -252,7 +252,7 @@ Player::Player(ServerInfo_User *info, int _id, bool _local, TabGame *_parent)
|
|||
|
||||
Player::~Player()
|
||||
{
|
||||
qDebug("Player destructor");
|
||||
qDebug() << "Player destructor:" << getName();
|
||||
|
||||
static_cast<GameScene *>(scene())->removePlayer(this);
|
||||
|
||||
|
|
@ -889,10 +889,6 @@ void Player::eventAttachCard(Event_AttachCard *event)
|
|||
|
||||
CardItem *oldParent = startCard->getAttachedTo();
|
||||
|
||||
if (targetZone)
|
||||
startCard->setParentItem(targetZone);
|
||||
else
|
||||
startCard->setParentItem(startZone);
|
||||
startCard->setAttachedTo(targetCard);
|
||||
|
||||
startZone->reorganizeCards();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue