X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fposition.cpp;h=5df07a092433c3dd1975102722840fb696a110fe;hb=05513a66410f96959f3a6e70be9aea72425cf7c7;hp=67cf2a02522c7f062d0cc41c647e01bb6463e91d;hpb=fa1e3427bdf7f6347326015a381014564e8fb337;p=stockfish diff --git a/src/position.cpp b/src/position.cpp index 67cf2a02..5df07a09 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -690,7 +690,7 @@ void Position::do_move(Move m, StateInfo& newSt, bool givesCheck) { assert(is_ok(m)); assert(&newSt != st); - ++nodes; + thisThread->nodes.fetch_add(1, std::memory_order_relaxed); Key k = st->key ^ Zobrist::side; // Copy some fields of the old state to our new StateInfo object except the