mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 08:22:15 -07:00
Use isEmpty() for comparison.
Took 6 minutes
This commit is contained in:
parent
02ef189607
commit
e868dbbd32
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ TableZoneLogic::TableZoneLogic(Player *_player,
|
||||||
void TableZoneLogic::addCardImpl(CardItem *card, int _x, int _y)
|
void TableZoneLogic::addCardImpl(CardItem *card, int _x, int _y)
|
||||||
{
|
{
|
||||||
cards.append(card);
|
cards.append(card);
|
||||||
if (!card->getFaceDown() && card->getPT() == "") {
|
if (!card->getFaceDown() && card->getPT().isEmpty()) {
|
||||||
card->setPT(card->getCardInfo().getPowTough());
|
card->setPT(card->getCardInfo().getPowTough());
|
||||||
}
|
}
|
||||||
card->setGridPoint(QPoint(_x, _y));
|
card->setGridPoint(QPoint(_x, _y));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue