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 files changed, 1 insertions(+), 0 deletions(-) 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; -- 1.7.0.4