Fix #225: Multiples of cards are now sent to deckstats.

This commit is contained in:
Waleed Khan 2014-07-23 15:21:46 -04:00
parent feaa3f5052
commit 68ac8d1a33

View file

@ -88,7 +88,11 @@ struct CopyIfNotAToken {
const DecklistCardNode *card
) const {
if (!cardDatabase.getCard(card->getName())->getIsToken()) {
destination.addCard(card->getName(), node->getName());
DecklistCardNode *addedCard = destination.addCard(
card->getName(),
node->getName()
);
addedCard->setNumber(card->getNumber());
}
}
};