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