diff options
Diffstat (limited to 'src/eu/equalparts/cardbase/decks')
-rw-r--r-- | src/eu/equalparts/cardbase/decks/ReferenceDeck.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/eu/equalparts/cardbase/decks/ReferenceDeck.java b/src/eu/equalparts/cardbase/decks/ReferenceDeck.java index 9e8695b..5650d2f 100644 --- a/src/eu/equalparts/cardbase/decks/ReferenceDeck.java +++ b/src/eu/equalparts/cardbase/decks/ReferenceDeck.java @@ -4,11 +4,10 @@ import java.util.HashMap; import java.util.Map; import eu.equalparts.cardbase.cards.Card; -import eu.equalparts.cardbase.utils.UID; public class ReferenceDeck extends Deck { - public Map<String, Integer> cardReferences = new HashMap<String, Integer>(); + public Map<Integer, Integer> cardReferences = new HashMap<Integer, Integer>(); public ReferenceDeck() { @@ -23,7 +22,7 @@ public class ReferenceDeck extends Deck { this.forests = deck.forests; for (Card card : deck.cards) { - cardReferences.put(UID.makeHash(card), card.count); + cardReferences.put(card.hashCode(), card.count); } } |