]> git.sesse.net Git - stockfish/blobdiff - src/thread.cpp
Don't update bestValue when pruning
[stockfish] / src / thread.cpp
index cf35c28857305b68c7b17ff768836b51d27956c1..9c132a03abf3250532593ac7b818ba325d1be524 100644 (file)
@@ -263,7 +263,7 @@ Value ThreadsManager::split(Position& pos, Stack* ss, Value alpha, Value beta,
                             Value bestValue, Depth depth, Move threatMove,
                             int moveCount, MovePicker* mp, int nodeType) {
   assert(pos.pos_is_ok());
-  assert(bestValue >= -VALUE_INFINITE);
+  assert(bestValue > -VALUE_INFINITE);
   assert(bestValue <= alpha);
   assert(alpha < beta);
   assert(beta <= VALUE_INFINITE);