X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=66b1d65dedf8c368f9c37a37ff43a178cf26d442;hp=588f76f3e6b789c6d8d500c56aba12eaf61718c7;hb=87139d018c86211a0636cb1bcedf9572670d9ba6;hpb=9645e8e4e76aebc4b3099b20846c14e18768cab4 diff --git a/src/search.cpp b/src/search.cpp index 588f76f3..66b1d65d 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1062,7 +1062,7 @@ namespace { // Refresh tte entry to avoid aging TT.store(posKey, tte->value(), tte->type(), tte->depth(), ttMove, tte->static_value(), tte->king_danger()); - ss->currentMove = ttMove; // Can be MOVE_NONE + ss->bestMove = ttMove; // Can be MOVE_NONE return value_from_tt(tte->value(), ply); } @@ -1176,7 +1176,7 @@ namespace { if (nullValue == value_mated_in(ply + 2)) mateThreat = true; - threatMove = (ss+1)->currentMove; + threatMove = (ss+1)->bestMove; if ( depth < ThreatDepth && (ss-1)->reduction && connected_moves(pos, (ss-1)->currentMove, threatMove)) @@ -1460,7 +1460,7 @@ namespace { if (!PvNode && tte && ok_to_use_TT(tte, depth, beta, ply)) { - ss->currentMove = ttMove; // Can be MOVE_NONE + ss->bestMove = ttMove; // Can be MOVE_NONE return value_from_tt(tte->value(), ply); }