Allow empty collectorNumber.

This commit is contained in:
Lukas Brübach 2025-04-19 00:20:27 +02:00
parent adaa31b34d
commit a7220da7e9

View file

@ -386,9 +386,10 @@ CardInfoPerSet CardDatabase::getSpecificSetForCard(const QString &cardName,
for (const auto &cardInfoPerSetList : setMap) { for (const auto &cardInfoPerSetList : setMap) {
for (auto &cardInfoForSet : cardInfoPerSetList) { for (auto &cardInfoForSet : cardInfoPerSetList) {
if (cardInfoForSet.getPtr()->getShortName() == setShortName && if (cardInfoForSet.getPtr()->getShortName() == setShortName) {
cardInfoForSet.getProperty("num") == collectorNumber) { if (cardInfoForSet.getProperty("num") == collectorNumber || collectorNumber.isEmpty()) {
return cardInfoForSet; return cardInfoForSet;
}
} }
} }
} }