mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 09:13:08 +00:00
Fix a bug of outputting multiple lines of bestmove
This commit is contained in:
parent
29c166a072
commit
3b7b632aa5
1 changed files with 1 additions and 1 deletions
|
@ -293,7 +293,7 @@ void MainThread::search() {
|
|||
previousScore = static_cast<Value>(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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue