diff --git a/common/server_protocolhandler.cpp b/common/server_protocolhandler.cpp index 36cb4831..03828c6a 100644 --- a/common/server_protocolhandler.cpp +++ b/common/server_protocolhandler.cpp @@ -747,7 +747,7 @@ ResponseCode Server_ProtocolHandler::cmdAttachCard(Command_AttachCard *cmd, Comm // Make a copy of the list because its contents change during the loop otherwise. QList attachedList = card->getAttachedCards(); for (int i = 0; i < attachedList.size(); ++i) - player->unattachCard(cont, attachedList[i]); + attachedList[i]->getZone()->getPlayer()->unattachCard(cont, attachedList[i]); if (targetzone->isColumnStacked(targetCard->getX(), targetCard->getY())) { CardToMove *cardToMove = new CardToMove(targetCard->getId());