summaryrefslogtreecommitdiffstats
path: root/demos/declarative/minehunt/minehunt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'demos/declarative/minehunt/minehunt.cpp')
-rw-r--r--demos/declarative/minehunt/minehunt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/declarative/minehunt/minehunt.cpp b/demos/declarative/minehunt/minehunt.cpp
index 709d945..aaaaaac 100644
--- a/demos/declarative/minehunt/minehunt.cpp
+++ b/demos/declarative/minehunt/minehunt.cpp
@@ -211,7 +211,7 @@ bool MinehuntGame::flip(int row, int col)
bool MinehuntGame::flag(int row, int col)
{
TileData *t = tile(row, col);
- if(!t || !playing)
+ if(!t || !playing || t->flipped())
return false;
t->setHasFlag(!t->hasFlag());