summaryrefslogtreecommitdiff
path: root/Games/Minesweeper
diff options
context:
space:
mode:
Diffstat (limited to 'Games/Minesweeper')
-rw-r--r--Games/Minesweeper/Field.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Games/Minesweeper/Field.cpp b/Games/Minesweeper/Field.cpp
index 5e59b4fe16..e31a90899c 100644
--- a/Games/Minesweeper/Field.cpp
+++ b/Games/Minesweeper/Field.cpp
@@ -339,7 +339,7 @@ void Field::paint_event(GPaintEvent& event)
void Field::on_square_clicked_impl(Square& square, bool should_flood_fill)
{
if (m_first_click) {
- while (square.has_mine) {
+ while (square.has_mine || square.number != 0) {
reset();
}
}