server crash fix

This commit is contained in:
Max-Wilhelm Bruker 2013-01-26 16:08:42 +01:00
parent d5ccda49a1
commit 14287e54f9

View file

@ -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()); moveCard(ges, zone, QList<const CardToMove *>() << cardToMove, zone, -1, card->getY(), card->getFaceDown());
delete cardToMove; 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) Response::ResponseCode Server_Player::setCardAttrHelper(GameEventStorage &ges, const QString &zoneName, int cardId, CardAttribute attribute, const QString &attrValue)