From: Joost VandeVondele Date: Sat, 5 Nov 2016 15:37:29 +0000 (+0100) Subject: Reproducible searches after ucinewgame X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=52cb3480230cc3142a2adca37a2f5ce733d0769b;p=fairystockfish.git 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 0ed6b19..1279fe9 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;