From e3dab108f4fe66c0cab32d8baafb615bd300c564 Mon Sep 17 00:00:00 2001 From: ebbit1q Date: Sun, 23 Aug 2026 02:42:49 +0200 Subject: [PATCH] format --- .../deck_list/tree/inner_deck_list_node.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libcockatrice_deck_list/libcockatrice/deck_list/tree/inner_deck_list_node.cpp b/libcockatrice_deck_list/libcockatrice/deck_list/tree/inner_deck_list_node.cpp index dbb670a8d..d5b65b4cc 100644 --- a/libcockatrice_deck_list/libcockatrice/deck_list/tree/inner_deck_list_node.cpp +++ b/libcockatrice_deck_list/libcockatrice/deck_list/tree/inner_deck_list_node.cpp @@ -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); }