aboutsummaryrefslogtreecommitdiff
path: root/rect.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-07-18 18:54:06 +0000
committerSimon Tatham <anakin@pobox.com>2005-07-18 18:54:06 +0000
commit6d96375736a2991d61df292ae38adcc010b860bf (patch)
tree8bf74056ffde9ff2350ee56240a64d9439102ac3 /rect.c
parent0e68ad82a9f514a987c1d56efac6387792d2ec07 (diff)
downloadpuzzles-6d96375736a2991d61df292ae38adcc010b860bf.zip
puzzles-6d96375736a2991d61df292ae38adcc010b860bf.tar.gz
puzzles-6d96375736a2991d61df292ae38adcc010b860bf.tar.bz2
puzzles-6d96375736a2991d61df292ae38adcc010b860bf.tar.xz
Fix to Chris's patch in r6106 (also from Chris).
[originally from svn r6117] [r6106 == a31934f233581da07153af6b4ee717f1e63387dd]
Diffstat (limited to 'rect.c')
-rw-r--r--rect.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rect.c b/rect.c
index 318cde0..a7113af 100644
--- a/rect.c
+++ b/rect.c
@@ -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;
}