X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=0fbdab56722b41c8368ad0123dbe3b25c525d764;hp=58a82d9dc24699cf04ad76b8b3dae4d40a44ec71;hb=6624105b5b075ec5c7646818f45aad1f75ed64aa;hpb=de58594b0f95115109d0c8aeb56a6c5c85b94b9f diff --git a/src/search.cpp b/src/search.cpp index 58a82d9d..0fbdab56 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -871,8 +871,8 @@ namespace { search(pos, ss, alpha, beta, d); ss->skipNullMove = false; - ttMove = ss->bestMove; tte = TT.probe(posKey); + ttMove = tte ? tte->move() : MOVE_NONE; } split_point_start: // At split points actual search starts from here @@ -885,8 +885,7 @@ split_point_start: // At split points actual search starts from here singularExtensionNode = !Root && !SpNode && depth >= SingularExtensionDepth[PvNode] - && tte - && tte->move() + && ttMove != MOVE_NONE && !excludedMove // Do not allow recursive singular extension search && (tte->type() & VALUE_TYPE_LOWER) && tte->depth() >= depth - 3 * ONE_PLY; @@ -949,7 +948,7 @@ split_point_start: // At split points actual search starts from here // on all the other moves but the ttMove, if result is lower than ttValue minus // a margin then we extend ttMove. if ( singularExtensionNode - && move == tte->move() + && move == ttMove && ext < ONE_PLY) { Value ttValue = value_from_tt(tte->value(), ss->ply);