From 07029044b7f525f2aa930b28ee809d1834e44920 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 27 Jan 2022 18:29:21 +0000 Subject: [PATCH] Mosaic: fix uninitialised field in dup_game(). not_completed_clues wasn't being copied from the previous game state, and was left uninitialised, so that its value was indeterminate. --- mosaic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mosaic.c b/mosaic.c index 7ded969..f72e8ca 100644 --- a/mosaic.c +++ b/mosaic.c @@ -907,6 +907,7 @@ static game_state *dup_game(const game_state *state) game_state *ret = snew(game_state); ret->cheating = state->cheating; + ret->not_completed_clues = state->not_completed_clues; ret->width = state->width; ret->height = state->height; ret->cells_contents = snewn(state->height * state->width, char);