From 8b8885ab07a99810140080da6ee586bae3daa2fa Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 9 Aug 2014 11:33:02 +0200 Subject: [PATCH] Fix perft 1 Compute correct number of moves for this corner case. A smal bug crept in after recent perft rework. No functional change. --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.39.2