aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mines.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mines.c b/mines.c
index 8af7c20..325c850 100644
--- a/mines.c
+++ b/mines.c
@@ -2637,6 +2637,7 @@ static game_state *execute_move(const game_state *from, const char *move)
if (!strcmp(move, "S")) {
int yy, xx;
+ if (!from->layout->mines) return NULL; /* Game not started. */
ret = dup_game(from);
if (!ret->dead) {
/*