mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-04 12:33:55 -07:00
Allow empty collectorNumber. (#5853)
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
1e01c684c4
commit
0c02d15e0d
1 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue