From: Joost VandeVondele Date: Sat, 5 Nov 2016 15:37:29 +0000 (+0100) Subject: Reproducible searches after ucinewgame X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=52cb3480230cc3142a2adca37a2f5ce733d0769b;ds=sidebyside Reproducible searches after ucinewgame Fixes issue #859. thisThread->callsCnt in search<>() was different (by 1) for the first and second game played. No functional change. --- diff --git a/src/search.cpp b/src/search.cpp index 0ed6b191..1279fe9c 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -212,6 +212,7 @@ void Search::clear() { th->counterMoves.clear(); th->fromTo.clear(); th->counterMoveHistory.clear(); + th->resetCalls = true; } Threads.main()->previousScore = VALUE_INFINITE;