diff --git a/projects/mtg/src/GameStateDeckViewer.cpp b/projects/mtg/src/GameStateDeckViewer.cpp index c24462f61..b9fb984df 100644 --- a/projects/mtg/src/GameStateDeckViewer.cpp +++ b/projects/mtg/src/GameStateDeckViewer.cpp @@ -1040,7 +1040,6 @@ void GameStateDeckViewer::updateStats() { stw.needUpdate = false; stw.cardCount = myDeck->getCount(WSrcDeck::UNFILTERED_COPIES); - stw.countLands = myDeck->getCount(Constants::MTG_COLOR_LAND); stw.totalPrice = myDeck->totalPrice(); stw.countManaProducers = 0; @@ -1074,11 +1073,16 @@ void GameStateDeckViewer::updateStats() { } } + stw.countLands = 0; for(int ic=0;icSize();ic++){ current = myDeck->getCard(ic); currentCost = current->data->getManaCost(); convertedCost = currentCost->getConvertedCost(); currentCount = myDeck->count(current); + + if(current->data->isLand()) + stw.countLands += currentCount; + // Add to the cards per cost counters stw.totalManaCost += convertedCost * currentCount;