mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-09 01:26:07 -05:00
server crash fix
This commit is contained in:
@@ -565,7 +565,8 @@ void Server_Player::unattachCard(GameEventStorage &ges, Server_Card *card)
|
||||
moveCard(ges, zone, QList<const CardToMove *>() << cardToMove, zone, -1, card->getY(), card->getFaceDown());
|
||||
delete cardToMove;
|
||||
|
||||
parentCard->getZone()->updateCardCoordinates(parentCard, parentCard->getX(), parentCard->getY());
|
||||
if (parentCard->getZone())
|
||||
parentCard->getZone()->updateCardCoordinates(parentCard, parentCard->getX(), parentCard->getY());
|
||||
}
|
||||
|
||||
Response::ResponseCode Server_Player::setCardAttrHelper(GameEventStorage &ges, const QString &zoneName, int cardId, CardAttribute attribute, const QString &attrValue)
|
||||
|
||||
Reference in New Issue
Block a user