diff --git a/src/main/java/de/hsfulda/onses/services/PlayerService.java b/src/main/java/de/hsfulda/onses/services/PlayerService.java index a9f651e..b3b4cc4 100644 --- a/src/main/java/de/hsfulda/onses/services/PlayerService.java +++ b/src/main/java/de/hsfulda/onses/services/PlayerService.java @@ -39,12 +39,14 @@ public class PlayerService { public PlayerService setGame(Game game) { this.game = game; + playerList.getFirst().setGame(this.game); + playerList.getLast().setGame(this.game); return this; } public PlayerService() { - addPlayerToList(new Player().setPlayerService(this).setGame(this.game)); - addPlayerToList(new Player().setPlayerService(this).setGame(this.game)); + addPlayerToList(new Player().setPlayerService(this)); + addPlayerToList(new Player().setPlayerService(this)); } }