server crash fix
This commit is contained in:
parent
d5ccda49a1
commit
14287e54f9
1 changed files with 2 additions and 1 deletions
|
@ -565,6 +565,7 @@ void Server_Player::unattachCard(GameEventStorage &ges, Server_Card *card)
|
||||||
moveCard(ges, zone, QList<const CardToMove *>() << cardToMove, zone, -1, card->getY(), card->getFaceDown());
|
moveCard(ges, zone, QList<const CardToMove *>() << cardToMove, zone, -1, card->getY(), card->getFaceDown());
|
||||||
delete cardToMove;
|
delete cardToMove;
|
||||||
|
|
||||||
|
if (parentCard->getZone())
|
||||||
parentCard->getZone()->updateCardCoordinates(parentCard, parentCard->getX(), parentCard->getY());
|
parentCard->getZone()->updateCardCoordinates(parentCard, parentCard->getX(), parentCard->getY());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue