server crash fix
This commit is contained in:
parent
b2dbfeb7f3
commit
6807bb0bd7
1 changed files with 3 additions and 1 deletions
|
@ -990,9 +990,11 @@ Response::ResponseCode Server_Player::cmdAttachCard(const Command_AttachCard &cm
|
||||||
return Response::RespContextError;
|
return Response::RespContextError;
|
||||||
if (cmd.has_target_card_id())
|
if (cmd.has_target_card_id())
|
||||||
targetCard = targetzone->getCard(cmd.target_card_id());
|
targetCard = targetzone->getCard(cmd.target_card_id());
|
||||||
if (targetCard)
|
if (targetCard) {
|
||||||
if (targetCard->getParentCard())
|
if (targetCard->getParentCard())
|
||||||
return Response::RespContextError;
|
return Response::RespContextError;
|
||||||
|
} else
|
||||||
|
return Response::RespNameNotFound;
|
||||||
}
|
}
|
||||||
if (!startzone->hasCoords())
|
if (!startzone->hasCoords())
|
||||||
return Response::RespContextError;
|
return Response::RespContextError;
|
||||||
|
|
Loading…
Reference in a new issue