aboutsummaryrefslogtreecommitdiff
path: root/src/ch/epfl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ch/epfl')
-rw-r--r--src/ch/epfl/xblast/server/GameState.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ch/epfl/xblast/server/GameState.java b/src/ch/epfl/xblast/server/GameState.java
index 77e91f2..c58a911 100644
--- a/src/ch/epfl/xblast/server/GameState.java
+++ b/src/ch/epfl/xblast/server/GameState.java
@@ -290,7 +290,7 @@ public final class GameState {
290 this.ticks = ArgumentChecker.requireNonNegative(ticks); 290 this.ticks = ArgumentChecker.requireNonNegative(ticks);
291 this.board = Objects.requireNonNull(board); 291 this.board = Objects.requireNonNull(board);
292 292
293 if (players.size() != 4) throw new IllegalArgumentException(); 293 if (players.size() != PlayerID.values().length) throw new IllegalArgumentException();
294 this.players = players; 294 this.players = players;
295 295
296 this.bombs = Objects.requireNonNull(bombs); 296 this.bombs = Objects.requireNonNull(bombs);