ref: 07029044b7f525f2aa930b28ee809d1834e44920
parent: 534384e5de95e8d4d0f60277befc922b6796b705
author: Simon Tatham <anakin@pobox.com>
date: Thu Jan 27 13:29:21 EST 2022
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.
--- a/mosaic.c
+++ b/mosaic.c
@@ -907,6 +907,7 @@
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);