mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-27 16:32:20 -07:00
format
This commit is contained in:
parent
98ecad9cc5
commit
e3dab108f4
1 changed files with 6 additions and 6 deletions
|
|
@ -150,12 +150,12 @@ int InnerDecklistNode::readElement(QXmlStreamReader *xml, int limit)
|
|||
auto *newZone = new InnerDecklistNode(xml->attributes().value("name").toString(), this);
|
||||
totalCards += newZone->readElement(xml, limit - totalCards);
|
||||
} else if (childName == "card") {
|
||||
int amount = xml->attributes().value("number").toString().toInt();
|
||||
amount = qMin(amount, limit - totalCards);
|
||||
auto *newCard = new DecklistCardNode(
|
||||
xml->attributes().value("name").toString(), amount,
|
||||
this, -1, xml->attributes().value("setShortName").toString(),
|
||||
xml->attributes().value("collectorNumber").toString(), xml->attributes().value("uuid").toString());
|
||||
int amount = xml->attributes().value("number").toString().toInt();
|
||||
amount = qMin(amount, limit - totalCards);
|
||||
auto *newCard = new DecklistCardNode(xml->attributes().value("name").toString(), amount, this, -1,
|
||||
xml->attributes().value("setShortName").toString(),
|
||||
xml->attributes().value("collectorNumber").toString(),
|
||||
xml->attributes().value("uuid").toString());
|
||||
totalCards += amount;
|
||||
totalCards += newCard->readElement(xml, limit - totalCards);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue