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
6807bb0b
Commit
6807bb0b
authored
Jan 28, 2013
by
Max-Wilhelm Bruker
Browse files
server crash fix
parent
b2dbfeb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/server_player.cpp
View file @
6807bb0b
...
@@ -990,9 +990,11 @@ Response::ResponseCode Server_Player::cmdAttachCard(const Command_AttachCard &cm
...
@@ -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
;
...
...
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