attach bug fix

This commit is contained in:
Max-Wilhelm Bruker 2010-11-09 14:26:54 +01:00
parent f158408747
commit 5b7dd037c1

View file

@ -764,6 +764,9 @@ ResponseCode Server_ProtocolHandler::cmdAttachCard(Command_AttachCard *cmd, Comm
if (!targetzone->hasCoords()) if (!targetzone->hasCoords())
return RespContextError; return RespContextError;
targetCard = targetzone->getCard(cmd->getTargetCardId(), false); targetCard = targetzone->getCard(cmd->getTargetCardId(), false);
if (targetCard)
if (targetCard->getParentCard())
return RespContextError;
} }
if (!startzone->hasCoords()) if (!startzone->hasCoords())
return RespContextError; return RespContextError;