diff options
Diffstat (limited to 'src/solve_generic.h')
| -rw-r--r-- | src/solve_generic.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/solve_generic.h b/src/solve_generic.h index d1d1469..41d995a 100644 --- a/src/solve_generic.h +++ b/src/solve_generic.h | |||
| @@ -21,7 +21,7 @@ solve_generic_appendsolution(dfsarg_generic_t *arg) | |||
| 21 | { | 21 | { |
| 22 | int strl; | 22 | int strl; |
| 23 | 23 | ||
| 24 | strl = writemoves(arg->moves, arg->depth, *arg->nextsol); | 24 | strl = writemoves(arg->moves, arg->nmoves, *arg->nextsol); |
| 25 | LOG("Solution found: %s\n", *arg->nextsol); | 25 | LOG("Solution found: %s\n", *arg->nextsol); |
| 26 | *arg->nextsol += strl; | 26 | *arg->nextsol += strl; |
| 27 | **arg->nextsol = '\n'; | 27 | **arg->nextsol = '\n'; |
| @@ -53,7 +53,6 @@ solve_generic_dfs(dfsarg_generic_t *arg) | |||
| 53 | return 1; | 53 | return 1; |
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | /* memcpy(&nextarg, arg, sizeof(dfsarg_generic_t)); */ | ||
| 57 | nextarg = *arg; | 56 | nextarg = *arg; |
| 58 | nextarg.nmoves = arg->nmoves + 1; | 57 | nextarg.nmoves = arg->nmoves + 1; |
| 59 | for (m = 0, ret = 0; m < 18; m++) { | 58 | for (m = 0, ret = 0; m < 18; m++) { |
