mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 09:22:15 -07:00
Fix cards without providerIds being counted for all cards.
This commit is contained in:
parent
b7e17be133
commit
70c2bd6377
1 changed files with 4 additions and 0 deletions
|
|
@ -153,6 +153,10 @@ int CardAmountWidget::countCardsInZone(const QString &deckZone)
|
||||||
{
|
{
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
|
if (setInfoForCard.getProperty("uuid").isEmpty()) {
|
||||||
|
return 0; // Cards without uuids/providerIds CANNOT match another card, they are undefined for us.
|
||||||
|
}
|
||||||
|
|
||||||
if (!deckModel) {
|
if (!deckModel) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue