X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=6d05405b6f79c9ad002824bbafd0777b132f000b;hb=706b44a966a6ea2fe9a1a7adaf28f7964eec3115;hp=aa8817ac050b40fe02a51ee8ab17b189b7df7810;hpb=823a5918e73e47585cdf3c4504d9f7e85e18b7cc;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index aa8817ac..6d05405b 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1218,7 +1218,7 @@ split_point_start: // At split points actual search starts from here ss->bestMove = move; if (SpNode) - sp->parentSstack->bestMove = move; + sp->ss->bestMove = move; } } @@ -2116,7 +2116,7 @@ split_point_start: // At split points actual search starts from here SplitPoint* tsp = threads[threadID].splitPoint; Position pos(*tsp->pos, threadID); - memcpy(ss, tsp->parentSstack - 1, 4 * sizeof(SearchStack)); + memcpy(ss, tsp->ss - 1, 4 * sizeof(SearchStack)); (ss+1)->sp = tsp; if (tsp->pvNode) @@ -2367,7 +2367,7 @@ split_point_start: // At split points actual search starts from here splitPoint.moveCount = moveCount; splitPoint.pos = &pos; splitPoint.nodes = 0; - splitPoint.parentSstack = ss; + splitPoint.ss = ss; for (i = 0; i < activeThreads; i++) splitPoint.slaves[i] = 0; @@ -2394,7 +2394,7 @@ split_point_start: // At split points actual search starts from here lock_release(&mpLock); // Tell the threads that they have work to do. This will make them leave - // their idle loop. But before copy search stack tail for each thread. + // their idle loop. for (i = 0; i < activeThreads; i++) if (i == master || splitPoint.slaves[i]) {