summaryrefslogtreecommitdiffstats
path: root/cardpile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cardpile.cpp')
-rw-r--r--cardpile.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/cardpile.cpp b/cardpile.cpp
index 1eb27eb..3f1597b 100644
--- a/cardpile.cpp
+++ b/cardpile.cpp
@@ -88,5 +88,10 @@ void CardPile::resetDeck(void)
{
deckCurrIndex = 51;
discardPileCurrIndex = 0;
+
+ /* reset cards' rank */
+ int i;
+ for (i = 0; i < 52; i++)
+ deck[i]->rankCard();
}