aboutsummaryrefslogtreecommitdiff
path: root/src/solvers/h48/solve_multithread.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/solvers/h48/solve_multithread.h')
-rw-r--r--src/solvers/h48/solve_multithread.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/solvers/h48/solve_multithread.h b/src/solvers/h48/solve_multithread.h
index 72f519e..e33ed49 100644
--- a/src/solvers/h48/solve_multithread.h
+++ b/src/solvers/h48/solve_multithread.h
@@ -214,11 +214,13 @@ solve_h48_single(dfsarg_solveh48_t *arg, task_queue_t *tq)
214 if (solve_h48_stop(arg)) 214 if (solve_h48_stop(arg))
215 return 0; 215 return 0;
216 216
217 if (issolved(arg->cube)){ 217 if (arg->nmoves + arg->npremoves == arg->depth){
218 if (arg->nmoves + arg->npremoves != arg->depth) 218 if(issolved(arg->cube)) {
219 solve_h48_appendsolution_thread(arg, tq);
220 return 1;
221 } else {
219 return 0; 222 return 0;
220 solve_h48_appendsolution_thread(arg, tq); 223 }
221 return 1;
222 } 224 }
223 225
224 nextarg = *arg; 226 nextarg = *arg;

Generated with cgit - Back to sebastiano.tronto.net