diff --git a/src/main/java/de/hsfulda/onses/models/Player.java b/src/main/java/de/hsfulda/onses/models/Player.java index 15dd5f7..e20dd1d 100644 --- a/src/main/java/de/hsfulda/onses/models/Player.java +++ b/src/main/java/de/hsfulda/onses/models/Player.java @@ -23,6 +23,7 @@ public class Player { } public void addCardToPlayerDeck(Card card) { + card.setPlayer(this); final ArrayList oldplayerDeck = new ArrayList<>(this.playerDeck); playerDeck.add(card); this.firePropertyChange(PROPERTY_PLAYER_DECK, oldplayerDeck, playerDeck);