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
e15806db
Commit
e15806db
authored
Sep 10, 2010
by
Max-Wilhelm Bruker
Browse files
arrow crash bugfix
parent
8a2f7e94
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/server_protocolhandler.cpp
View file @
e15806db
...
@@ -761,10 +761,11 @@ ResponseCode Server_ProtocolHandler::cmdCreateArrow(Command_CreateArrow *cmd, Co
...
@@ -761,10 +761,11 @@ ResponseCode Server_ProtocolHandler::cmdCreateArrow(Command_CreateArrow *cmd, Co
return
RespNameNotFound
;
return
RespNameNotFound
;
Server_Card
*
startCard
=
startZone
->
getCard
(
cmd
->
getStartCardId
(),
false
);
Server_Card
*
startCard
=
startZone
->
getCard
(
cmd
->
getStartCardId
(),
false
);
Server_Card
*
targetCard
=
0
;
Server_Card
*
targetCard
=
0
;
if
(
!
playerTarget
)
if
(
!
playerTarget
)
{
targetCard
=
targetZone
->
getCard
(
cmd
->
getTargetCardId
(),
false
);
targetCard
=
targetZone
->
getCard
(
cmd
->
getTargetCardId
(),
false
);
if
(
!
startCard
||
(
!
targetCard
&&
!
playerTarget
)
||
(
startCard
==
targetCard
)
||
(
startZone
->
getType
()
!=
PublicZone
)
||
(
targetZone
->
getType
()
!=
PublicZone
))
if
((
startZone
->
getType
()
!=
PublicZone
)
||
(
targetZone
->
getType
()
!=
PublicZone
))
return
RespContextError
;
return
RespContextError
;
}
Server_ArrowTarget
*
targetItem
;
Server_ArrowTarget
*
targetItem
;
if
(
playerTarget
)
if
(
playerTarget
)
...
...
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