]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Simplify TT penalty stat (#980)
[stockfish] / src / search.cpp
index b75870ff5021968f66d0e0a0aa02271a310cec00..b891d09bcdd68bd7e8ee6373122142bc38a7587a 100644 (file)
@@ -657,7 +657,7 @@ namespace {
                     update_cm_stats(ss-1, pos.piece_on(prevSq), prevSq, -stat_bonus(depth + ONE_PLY));
             }
             // Penalty for a quiet ttMove that fails low
-            else if (ttValue < alpha && !pos.capture_or_promotion(ttMove))
+            else if (!pos.capture_or_promotion(ttMove))
             {
                 Value penalty = -stat_bonus(depth + ONE_PLY);
                 thisThread->history.update(pos.side_to_move(), ttMove, penalty);