diff --git a/src/main/java/com/github/ilpersi/BHBot/DungeonThread.java b/src/main/java/com/github/ilpersi/BHBot/DungeonThread.java index dd4d1b3..ef77549 100644 --- a/src/main/java/com/github/ilpersi/BHBot/DungeonThread.java +++ b/src/main/java/com/github/ilpersi/BHBot/DungeonThread.java @@ -2381,12 +2381,12 @@ private void processDungeon() { } else { //close 'cleared' popup - Cue YesGreenWithBounds = null; + Bounds yesGreen = null; if (BHBot.State.Raid.equals(bot.getState())) { - YesGreenWithBounds = new Cue(BHBot.cues.get("YesGreen"), Bounds.fromWidthHeight(290, 345, 70, 45)); + yesGreen = Bounds.fromWidthHeight(290, 345, 70, 45); } - bot.browser.closePopupSecurely(BHBot.cues.get("Cleared"), YesGreenWithBounds); + bot.browser.closePopupSecurely(BHBot.cues.get("Cleared"), new Cue(BHBot.cues.get("YesGreen"), yesGreen)); // close the activity window to return us to the main screen if (bot.getState() != BHBot.State.Expedition) {