mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Fix so directory copied in copy constructor
This commit is contained in:
@@ -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()));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user