additional Check

This commit is contained in:
Anthony Calosa
2019-10-13 12:14:42 +08:00
parent 7f0b7780da
commit d3bad23c99

View File

@@ -58,7 +58,7 @@ public abstract class AbstractGuiGame implements IGuiGame, IMayViewCards {
public final void setCurrentPlayer(PlayerView player) {
player = TrackableTypes.PlayerViewType.lookup(player); //ensure we use the correct player
if (!gameControllers.containsKey(player)) {
if (hasLocalPlayers() && !isLocalPlayer(player)) { //add check if gameControllers is not empty
throw new IllegalArgumentException();
}