aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mines.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mines.c b/mines.c
index 25b2206..8af7c20 100644
--- a/mines.c
+++ b/mines.c
@@ -2690,6 +2690,9 @@ static game_state *execute_move(const game_state *from, const char *move)
return ret;
} else {
+ /* Dead players should stop trying to move. */
+ if (from->dead)
+ return NULL;
ret = dup_game(from);
while (*move) {