Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
5b7dd037
Commit
5b7dd037
authored
Nov 09, 2010
by
Max-Wilhelm Bruker
Browse files
attach bug fix
parent
f1584087
Changes
1
Show whitespace changes
Inline
Side-by-side
common/server_protocolhandler.cpp
View file @
5b7dd037
...
@@ -764,6 +764,9 @@ ResponseCode Server_ProtocolHandler::cmdAttachCard(Command_AttachCard *cmd, Comm
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment