1
0
Fork 0
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:
noobpwnftw 2018-07-09 01:01:58 +08:00 committed by Stéphane Nicolet
parent 29c166a072
commit 3b7b632aa5

View file

@ -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;