From 6ed409eceeb8caa81604c107b5ce0713b88bbae2 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sun, 28 Nov 2010 17:05:49 +0100 Subject: [PATCH] Fix bestmove output in multi PV case When MultiPV > 1, always take bestmove from the RootMoveList (and don't bother with a ponder move). Without that the bestmove is most probably incorrect. Patch from Peter Petrov. Signed-off-by: Marco Costalba --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 4bacbef0..f5e1a000 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -661,7 +661,7 @@ namespace { << " time " << current_search_time() << endl; // Print the best move and the ponder move to the standard output - if (pv[0] == MOVE_NONE) + if (pv[0] == MOVE_NONE || MultiPV > 1) { pv[0] = rml.move(0); pv[1] = MOVE_NONE; -- 2.39.2