Simplify pondering time management (#1899)
[stockfish] / src / thread.cpp
index f88e359b0373436db1f6c445f72f4b04448667e7..6c1d729987d90bb237f0b0c9034d78d19aa2d7f0 100644 (file)
@@ -162,8 +162,8 @@ void ThreadPool::start_thinking(Position& pos, StateListPtr& states,
 
   main()->wait_for_search_finished();
 
-  stopOnPonderhit = stop = false;
-  ponder = ponderMode;
+  main()->stopOnPonderhit = stop = false;
+  main()->ponder = ponderMode;
   Search::Limits = limits;
   Search::RootMoves rootMoves;