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
a8e9501d
Commit
a8e9501d
authored
Dec 07, 2009
by
Max-Wilhelm Bruker
Browse files
bug fix
parent
bda7ec21
Changes
2
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/cardzone.cpp
View file @
a8e9501d
...
@@ -119,8 +119,8 @@ CardItem *CardZone::takeCard(int position, int cardId, const QString &cardName,
...
@@ -119,8 +119,8 @@ CardItem *CardZone::takeCard(int position, int cardId, const QString &cardName,
}
}
if
(
position
==
-
1
)
if
(
position
==
-
1
)
return
0
;
return
0
;
}
}
else
if
(
position
>=
cards
.
size
())
Q_ASSERT
(
position
<
cards
.
size
())
;
return
0
;
CardItem
*
c
=
cards
.
takeAt
(
position
);
CardItem
*
c
=
cards
.
takeAt
(
position
);
...
...
cockatrice/src/player.cpp
View file @
a8e9501d
...
@@ -242,6 +242,7 @@ Player::Player(const QString &_name, int _id, bool _local, Client *_client, TabG
...
@@ -242,6 +242,7 @@ Player::Player(const QString &_name, int _id, bool _local, Client *_client, TabG
}
else
{
}
else
{
countersMenu
=
0
;
countersMenu
=
0
;
sbMenu
=
0
;
sbMenu
=
0
;
cardMenu
=
0
;
}
}
retranslateUi
();
retranslateUi
();
...
...
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