Replace Position::copy()
[stockfish] / src / thread.cpp
index fe7a669b8e66f989d990e89f9e24127afe1848f4..cb3f8223aacf26a93199c7c2ed6cef1b8a02916c 100644 (file)
@@ -434,7 +434,7 @@ void ThreadsManager::start_searching(const Position& pos, const LimitsType& limi
   Signals.stopOnPonderhit = Signals.firstRootMove = false;
   Signals.stop = Signals.failedLowAtRoot = false;
 
-  RootPosition.copy(pos, main_thread());
+  RootPosition = pos;
   Limits = limits;
   RootMoves.clear();