mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 23:51:29 -07:00
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.
This commit is contained in:
1
mosaic.c
1
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);
|
||||
|
Reference in New Issue
Block a user