Prevent passing game object to client when adding card to field

This commit is contained in:
drdev
2014-10-13 02:29:42 +00:00
parent f0e75ae9bc
commit d3c3e6fe43
2 changed files with 1 additions and 2 deletions

View File

@@ -1744,7 +1744,7 @@ public class PlayerControllerHuman extends PlayerController {
}
public void addCardToBattlefield() {
final Player p = SGuiChoose.oneOrNone("Put card in play for which player?", (FCollection<Player>)game.getPlayers());
final Player p = Player.get(SGuiChoose.oneOrNone("Put card in play for which player?", PlayerView.getCollection(game.getPlayers())));
if (p == null) {
return;
}