]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Fix perft 1
[stockfish] / src / search.cpp
index 144776aac160bcc411bdc86a50592e98aa537abd..c7eb5f9a70f19d200f3cc291ea9fdd0fa852577b 100644 (file)
@@ -163,7 +163,7 @@ uint64_t Search::perft(Position& pos, Depth depth) {
   for (MoveList<LEGAL> 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));