diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2017-05-15 20:56:33 +0200 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2017-05-15 20:56:33 +0200 |
commit | cb2a5130ed7f133941935b981fec89b7e9b4b644 (patch) | |
tree | 348a6732aee4516ccd19e266fc7f5b7605224627 /backend/src/main/java | |
parent | Add test for Lobby.removePlayer() (diff) | |
download | seven-wonders-cb2a5130ed7f133941935b981fec89b7e9b4b644.tar.gz seven-wonders-cb2a5130ed7f133941935b981fec89b7e9b4b644.tar.bz2 seven-wonders-cb2a5130ed7f133941935b981fec89b7e9b4b644.zip |
Add test for Lobby owner index
Diffstat (limited to 'backend/src/main/java')
-rw-r--r-- | backend/src/main/java/org/luxons/sevenwonders/lobby/Lobby.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/src/main/java/org/luxons/sevenwonders/lobby/Lobby.java b/backend/src/main/java/org/luxons/sevenwonders/lobby/Lobby.java index b143538a..2081d531 100644 --- a/backend/src/main/java/org/luxons/sevenwonders/lobby/Lobby.java +++ b/backend/src/main/java/org/luxons/sevenwonders/lobby/Lobby.java @@ -30,7 +30,7 @@ public class Lobby { this.gameDefinition = gameDefinition; this.players = new ArrayList<>(gameDefinition.getMinPlayers()); this.settings = new CustomizableSettings(); - players.add(owner); + addPlayer(owner); } public long getId() { |