From 2d7a38db1ab1cf03f283499638b6fc644549d758 Mon Sep 17 00:00:00 2001 From: -gz <-gz@cardforge.org> Date: Sun, 8 Mar 2015 23:30:26 +0000 Subject: [PATCH] Fix r28874 bug in limited gauntlets preventing progress past the first round --- forge-gui/src/main/java/forge/limited/GauntletMini.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/forge-gui/src/main/java/forge/limited/GauntletMini.java b/forge-gui/src/main/java/forge/limited/GauntletMini.java index 28d19a0b649..e813f1db4bb 100644 --- a/forge-gui/src/main/java/forge/limited/GauntletMini.java +++ b/forge-gui/src/main/java/forge/limited/GauntletMini.java @@ -78,8 +78,9 @@ public class GauntletMini { * Advances the tournament to the next round. */ public void nextRound() { + System.out.println("Moving from round " + currentRound + " to round " + (currentRound + 1) + " of " + rounds); if (hostedMatch == null) { - return; + throw new IllegalStateException("Cannot advance round when no match has been hosted."); } if (currentRound >= rounds) { @@ -146,7 +147,7 @@ public class GauntletMini { starter.add(human); starter.add(aiOpponents.get(currentRound - 1).setPlayer(GamePlayerUtil.createAiPlayer())); - final HostedMatch hostedMatch = GuiBase.getInterface().hostMatch(); + hostedMatch = GuiBase.getInterface().hostMatch(); hostedMatch.startMatch(gauntletType, null, starter, human, GuiBase.getInterface().getNewGuiGame()); }