]> git.sesse.net Git - stockfish/blobdiff - src/position.cpp
Indentation fix in index()
[stockfish] / src / position.cpp
index 67cf2a02522c7f062d0cc41c647e01bb6463e91d..5df07a092433c3dd1975102722840fb696a110fe 100644 (file)
@@ -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