From 5b7dd037c1cd9da540c7787e1ad25db98b37f7a0 Mon Sep 17 00:00:00 2001 From: Max-Wilhelm Bruker Date: Tue, 9 Nov 2010 14:26:54 +0100 Subject: [PATCH] attach bug fix --- common/server_protocolhandler.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/server_protocolhandler.cpp b/common/server_protocolhandler.cpp index 4e5fb70c9..034648e4c 100644 --- a/common/server_protocolhandler.cpp +++ b/common/server_protocolhandler.cpp @@ -764,6 +764,9 @@ ResponseCode Server_ProtocolHandler::cmdAttachCard(Command_AttachCard *cmd, Comm if (!targetzone->hasCoords()) return RespContextError; targetCard = targetzone->getCard(cmd->getTargetCardId(), false); + if (targetCard) + if (targetCard->getParentCard()) + return RespContextError; } if (!startzone->hasCoords()) return RespContextError;