mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-11 04:43:56 -07:00
Convert string to string list.
Took 2 minutes
This commit is contained in:
parent
519b428629
commit
d1eab4b41d
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ QList<ExactCard> VisualDeckEditorSampleHandWidget::getRandomCards(int amountToGe
|
||||||
if (!decklist)
|
if (!decklist)
|
||||||
return randomCards;
|
return randomCards;
|
||||||
|
|
||||||
QList<DecklistCardNode *> cardsInDeck = decklist->getCardNodes(DECK_ZONE_MAIN);
|
QList<DecklistCardNode *> cardsInDeck = decklist->getCardNodes({DECK_ZONE_MAIN});
|
||||||
|
|
||||||
// Collect all cards in the main deck, allowing duplicates based on their count
|
// Collect all cards in the main deck, allowing duplicates based on their count
|
||||||
for (auto currentCard : cardsInDeck) {
|
for (auto currentCard : cardsInDeck) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue