mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 06:22:15 -07:00
Fix null/empty check.
Took 3 minutes
This commit is contained in:
parent
70aed25eef
commit
18cc49e7b3
1 changed files with 1 additions and 1 deletions
|
|
@ -428,7 +428,7 @@ PrintingInfo CardDatabase::getSpecificPrinting(const QString &cardName,
|
|||
|
||||
for (const auto &printings : setMap) {
|
||||
for (auto &cardInfoForSet : printings) {
|
||||
if (collectorNumber != nullptr) {
|
||||
if (!collectorNumber.isEmpty()) {
|
||||
if (cardInfoForSet.getSet()->getShortName() == setShortName &&
|
||||
cardInfoForSet.getProperty("num") == collectorNumber) {
|
||||
return cardInfoForSet;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue