From: Marco Costalba Date: Sun, 28 Nov 2010 16:05:49 +0000 (+0100) Subject: Fix bestmove output in multi PV case X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=6ed409eceeb8caa81604c107b5ce0713b88bbae2 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 --- 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;