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
14287e54
Commit
14287e54
authored
Jan 26, 2013
by
Max-Wilhelm Bruker
Browse files
server crash fix
parent
d5ccda49
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/server_player.cpp
View file @
14287e54
...
...
@@ -565,7 +565,8 @@ void Server_Player::unattachCard(GameEventStorage &ges, Server_Card *card)
moveCard
(
ges
,
zone
,
QList
<
const
CardToMove
*>
()
<<
cardToMove
,
zone
,
-
1
,
card
->
getY
(),
card
->
getFaceDown
());
delete
cardToMove
;
parentCard
->
getZone
()
->
updateCardCoordinates
(
parentCard
,
parentCard
->
getX
(),
parentCard
->
getY
());
if
(
parentCard
->
getZone
())
parentCard
->
getZone
()
->
updateCardCoordinates
(
parentCard
,
parentCard
->
getX
(),
parentCard
->
getY
());
}
Response
::
ResponseCode
Server_Player
::
setCardAttrHelper
(
GameEventStorage
&
ges
,
const
QString
&
zoneName
,
int
cardId
,
CardAttribute
attribute
,
const
QString
&
attrValue
)
...
...
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