uint64_t nodes = 0;
for (Thread* th : *this)
- nodes += th->rootPos.nodes_searched();
+ nodes += th->nodes;
return nodes;
}
{
th->maxPly = 0;
th->tbHits = 0;
+ th->nodes = 0;
th->rootDepth = DEPTH_ZERO;
th->rootMoves = rootMoves;
th->rootPos.set(pos.fen(), pos.is_chess960(), &setupStates->back(), th);