refactor CardList (#5197)

This commit is contained in:
RickyRister 2024-11-26 21:15:35 -08:00 committed by GitHub
parent a8471f62bc
commit 0ca8bdb3a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 23 additions and 41 deletions

View file

@ -142,7 +142,7 @@ void CardZone::addCard(CardItem *card, bool reorganize, int x, int y)
CardItem *CardZone::getCard(int cardId, const QString &cardName)
{
CardItem *c = cards.findCard(cardId, false);
CardItem *c = cards.findCard(cardId);
if (!c) {
qDebug() << "CardZone::getCard: card id=" << cardId << "not found";
return 0;