From: Marco Costalba Date: Sat, 9 Aug 2014 09:33:02 +0000 (+0200) Subject: Fix perft 1 X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=8b8885ab07a99810140080da6ee586bae3daa2fa Fix perft 1 Compute correct number of moves for this corner case. A smal bug crept in after recent perft rework. No functional change. --- diff --git a/src/search.cpp b/src/search.cpp index 144776aa..c7eb5f9a 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -163,7 +163,7 @@ uint64_t Search::perft(Position& pos, Depth depth) { for (MoveList it(pos); *it; ++it) { if (Root && depth <= ONE_PLY) - cnt = 1; + cnt = 1, nodes++; else { pos.do_move(*it, st, ci, pos.gives_check(*it, ci));