]> git.sesse.net Git - stockfish/blobdiff - src/thread.cpp
Further simplify aspiration code
[stockfish] / src / thread.cpp
index cf35c28857305b68c7b17ff768836b51d27956c1..e1c1f8a941dba8b7b8c40f42748885ee9ef30fa8 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);
@@ -443,7 +443,7 @@ void ThreadsManager::start_thinking(const Position& pos, const LimitsType& limit
   // Copy input arguments to initialize the search
   RootPosition.copy(pos, 0);
   Limits = limits;
-  RootMoves = searchMoves;
+  SearchMoves = searchMoves;
 
   // Reset signals before to start the new search
   memset((void*)&Signals, 0, sizeof(Signals));