]> git.sesse.net Git - stockfish/commitdiff
Reproducible searches after ucinewgame
authorJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sat, 5 Nov 2016 15:37:29 +0000 (16:37 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 5 Nov 2016 21:25:55 +0000 (22:25 +0100)
Fixes issue #859.

thisThread->callsCnt in search<>() was different (by 1) for the first and second game played.

No functional change.

src/search.cpp

index 0ed6b191b8bbe7e16d5585a68b85662c0c363616..1279fe9c588b837ff1664fbe44d0b9c8459f4567 100644 (file)
@@ -212,6 +212,7 @@ void Search::clear() {
       th->counterMoves.clear();
       th->fromTo.clear();
       th->counterMoveHistory.clear();
+      th->resetCalls = true;
   }
 
   Threads.main()->previousScore = VALUE_INFINITE;