From 52cb3480230cc3142a2adca37a2f5ce733d0769b Mon Sep 17 00:00:00 2001 From: Joost VandeVondele Date: Sat, 5 Nov 2016 16:37:29 +0100 Subject: [PATCH] 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. --- src/search.cpp | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.2