Use isEmpty() for comparison.

Took 6 minutes
This commit is contained in:
Lukas Brübach 2025-09-14 12:27:30 +02:00
parent 02ef189607
commit e868dbbd32

View file

@ -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));