diff --git a/src/frames/FrameShipsCollection.java b/src/frames/FrameShipsCollection.java index 9cf1574..a3e4ac6 100644 --- a/src/frames/FrameShipsCollection.java +++ b/src/frames/FrameShipsCollection.java @@ -186,12 +186,12 @@ public class FrameShipsCollection extends JFrame { private void buttonTrashClick(){ if (trashCollection.size() == 0) return; - FrameBattleship Frame; + FrameBattleship frame; try { - Frame = new FrameBattleship(); + frame = new FrameBattleship(); } catch (IOException e) { throw new RuntimeException(e); } - Frame.setShip(trashCollection.pop()); + frame.setShip(trashCollection.pop()); } }