From 3b7b632aa56e9366edd4cb55132b96070260c9fe Mon Sep 17 00:00:00 2001 From: noobpwnftw Date: Mon, 9 Jul 2018 01:01:58 +0800 Subject: [PATCH] Fix a bug of outputting multiple lines of bestmove --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index b636e7b0..221b57e1 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -293,7 +293,7 @@ void MainThread::search() { previousScore = static_cast(mi.score); // Send again PV info if we have a new best thread - if (mi.rank == Cluster::rank()) { + if (Cluster::is_root()) { if (bestThread != this) sync_cout << UCI::pv(bestThread->rootPos, bestThread->completedDepth, -VALUE_INFINITE, VALUE_INFINITE) << sync_endl;