X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=d555b62ee6289d534e822ace5e6f295602702eee;hp=7029ae032ef8ba2703a7fa5080f4f319628fcf46;hb=ebe021f6a5da63cf0e31da89d4c21e9b5f673fcd;hpb=06eba14dc984dc793e959ff7a5de19e1a190112b diff --git a/src/search.cpp b/src/search.cpp index 7029ae03..d555b62e 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1125,10 +1125,11 @@ moves_loop: // When in check search starts from here && cm_ok) update_cm_stats(ss-1, pos.piece_on(prevSq), prevSq, stat_bonus(depth)); - tte->save(posKey, value_to_tt(bestValue, ss->ply), - bestValue >= beta ? BOUND_LOWER : - PvNode && bestMove ? BOUND_EXACT : BOUND_UPPER, - depth, bestMove, ss->staticEval, TT.generation()); + if(!excludedMove) + tte->save(posKey, value_to_tt(bestValue, ss->ply), + bestValue >= beta ? BOUND_LOWER : + PvNode && bestMove ? BOUND_EXACT : BOUND_UPPER, + depth, bestMove, ss->staticEval, TT.generation()); assert(bestValue > -VALUE_INFINITE && bestValue < VALUE_INFINITE);