diff options
Diffstat (limited to 'rect.c')
| -rw-r--r-- | rect.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2477,6 +2477,9 @@ static game_state *execute_move(game_state *from, char *move) vedge(ret,x1,y1) = !vedge(ret,x1,y1); } + sfree(ret->correct); + ret->correct = get_correct(ret); + /* * We've made a real change to the grid. Check to see * if the game has been completed. @@ -2494,9 +2497,6 @@ static game_state *execute_move(game_state *from, char *move) ret->completed = TRUE; } - sfree(ret->correct); - ret->correct = get_correct(ret); - return ret; } |