From e4efc8b74159a77e77d0d6b53c9ef7215cfdcb9a Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sun, 25 Mar 2012 16:44:55 +0100 Subject: [PATCH] Reset Thread::maxPly before a new search No functional change. Signed-off-by: Marco Costalba --- src/thread.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/thread.cpp b/src/thread.cpp index ab20d781..9f5a13f8 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -227,9 +227,10 @@ void ThreadsManager::read_uci_options() { void ThreadsManager::wake_up() { - for (int i = 1; i < size(); i++) // Main thread is already running + for (int i = 0; i < size(); i++) { threads[i]->do_sleep = false; + threads[i]->maxPly = 0; if (!useSleepingThreads) threads[i]->wake_up(); -- 2.39.2