From d6178355ded68961cde36c2aa2244483d1b61fa1 Mon Sep 17 00:00:00 2001 From: kfkama Date: Thu, 17 Feb 2022 16:06:34 +0100 Subject: [PATCH] Bugfix early victory --- src/main/java/Minesweeper/Playfield.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/Minesweeper/Playfield.java b/src/main/java/Minesweeper/Playfield.java index c67c570..2a1806e 100644 --- a/src/main/java/Minesweeper/Playfield.java +++ b/src/main/java/Minesweeper/Playfield.java @@ -65,7 +65,8 @@ public class Playfield { } public void reset() { - JOptionPane.showMessageDialog(MsG,"KABOOM! Try again!"); + JOptionPane.showMessageDialog(MsG,"KABOOM! Try again!"); + cellsFlooded = 0; for (int i = 0; i < Size; i++) { for (int j = 0; j < Size; j++) { MsG.remove(cells[i][j]);