Fix non-fatal error when starting a match.

This commit is contained in:
elcnesh
2015-02-17 12:45:22 +00:00
parent 4e37f7b442
commit 7d4364c036

View File

@@ -36,6 +36,7 @@ public abstract class AbstractGuiGame implements IGuiGame, IMayViewCards {
protected final void setLocalPlayers(final FCollectionView<PlayerView> players) { protected final void setLocalPlayers(final FCollectionView<PlayerView> players) {
this.localPlayers = players; this.localPlayers = players;
this.currentPlayer = Iterables.getFirst(players, null);
} }
public final boolean hasLocalPlayers() { public final boolean hasLocalPlayers() {
return localPlayers != null && !localPlayers.isEmpty(); return localPlayers != null && !localPlayers.isEmpty();