]> git.sesse.net Git - stockfish/blobdiff - src/thread.cpp
Revert "Fix a race on Limits::ponder"
[stockfish] / src / thread.cpp
index 66f74b997342c0db87304f29ab5eb1c58983119c..86fce6aa0c20020b6c54666c874a5231793d6c9e 100644 (file)
@@ -35,7 +35,7 @@ ThreadPool Threads; // Global object
 Thread::Thread() {
 
   exit = false;
-  maxPly = 0;
+  selDepth = 0;
   nodes = tbHits = 0;
   idx = Threads.size(); // Start from 0
 
@@ -210,7 +210,6 @@ void ThreadPool::start_thinking(Position& pos, StateListPtr& states,
 
   for (Thread* th : Threads)
   {
-      th->maxPly = 0;
       th->nodes = 0;
       th->tbHits = 0;
       th->rootDepth = DEPTH_ZERO;