Fix so directory copied in copy constructor

This commit is contained in:
drdev
2015-10-04 21:05:51 +00:00
parent d89d6ae951
commit b57a54075c

View File

@@ -80,7 +80,7 @@ public class Deck extends DeckBase implements Iterable<Entry<DeckSection, CardPo
*/ */
public Deck(final Deck other, final String newName) { public Deck(final Deck other, final String newName) {
super(newName); super(newName);
setComment(other.getComment()); other.cloneFieldsTo(this);
for (final Entry<DeckSection, CardPool> sections : other.parts.entrySet()) { for (final Entry<DeckSection, CardPool> sections : other.parts.entrySet()) {
parts.put(sections.getKey(), new CardPool(sections.getValue())); parts.put(sections.getKey(), new CardPool(sections.getValue()));
} }