diff options
Diffstat (limited to 'kpat/freecell-solver/scans.c')
-rw-r--r-- | kpat/freecell-solver/scans.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kpat/freecell-solver/scans.c b/kpat/freecell-solver/scans.c index 31a5dd18..a4368873 100644 --- a/kpat/freecell-solver/scans.c +++ b/kpat/freecell-solver/scans.c @@ -406,7 +406,7 @@ int freecell_solver_soft_dfs_or_random_dfs_do_solve_or_resume( freecell_solver_increase_dfs_max_depth(soft_thread); /* Initialize the initial state to indicate it is the first */ - ptr_state_with_locations_orig->tqparent = NULL; + ptr_state_with_locations_orig->parent = NULL; ptr_state_with_locations_orig->moves_to_parent = NULL; ptr_state_with_locations_orig->depth = 0; @@ -692,7 +692,7 @@ int freecell_solver_soft_dfs_or_random_dfs_do_solve_or_resume( ptr_recurse_into_state_with_locations->visited_iter = instance->num_times; #if 0 - ptr_recurse_into_state_with_locations->tqparent = ptr_state_with_locations; + ptr_recurse_into_state_with_locations->parent = ptr_state_with_locations; #endif /* @@ -958,7 +958,7 @@ int freecell_solver_a_star_or_bfs_do_solve_or_resume( if (!resume) { /* Initialize the first element to indicate it is the first */ - ptr_state_with_locations_orig->tqparent = NULL; + ptr_state_with_locations_orig->parent = NULL; ptr_state_with_locations_orig->moves_to_parent = NULL; ptr_state_with_locations_orig->depth = 0; } @@ -1027,9 +1027,9 @@ int freecell_solver_a_star_or_bfs_do_solve_or_resume( ptr_state_with_locations->depth, (void*)instance, ptr_state_with_locations, - ((ptr_state_with_locations->tqparent == NULL) ? + ((ptr_state_with_locations->parent == NULL) ? 0 : - ptr_state_with_locations->tqparent->visited_iter + ptr_state_with_locations->parent->visited_iter ) ); } |