Review fixes

This commit is contained in:
Anders Åstrand 2017-05-30 18:55:40 +02:00
parent ad0507e739
commit 4d0e8cb443

View file

@ -307,12 +307,9 @@ public final class GamePanel extends javax.swing.JPanel {
if (jLayeredPane!= null) { if (jLayeredPane!= null) {
jLayeredPane.remove(abilityPicker); jLayeredPane.remove(abilityPicker);
}
this.abilityPicker.cleanUp();
if (jLayeredPane != null) {
jLayeredPane.remove(DialogManager.getManager(gameId)); jLayeredPane.remove(DialogManager.getManager(gameId));
} }
this.abilityPicker.cleanUp();
DialogManager.removeGame(gameId); DialogManager.removeGame(gameId);
if (pickNumber != null) { if (pickNumber != null) {