X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.cpp;h=f5b8b5e275aff3313b74ae061fd8b4455d98dab8;hp=0d8070f202b0774d5077b4ec26962d54f438f7c4;hb=db322e6a63459bc3dfdf7fd537d42234b854fb76;hpb=45dba12c5b236dd4f6d750b9793b192eaa5e6699 diff --git a/src/thread.cpp b/src/thread.cpp index 0d8070f2..f5b8b5e2 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -357,8 +357,8 @@ void ThreadPool::wait_for_think_finished() { // start_thinking() wakes up the main thread sleeping in MainThread::idle_loop() // so to start a new search, then returns immediately. -void ThreadPool::start_thinking(const Position& pos, const LimitsType& limits, const std::vector& searchMoves, - StateStackPtr& setupStates, MovesVectPtr& setupMoves) { +void ThreadPool::start_thinking(const Position& pos, const LimitsType& limits, + const std::vector& searchMoves, StateStackPtr& states) { wait_for_think_finished(); SearchTime = Time::now(); // As early as possible @@ -368,8 +368,7 @@ void ThreadPool::start_thinking(const Position& pos, const LimitsType& limits, c RootPos = pos; Limits = limits; - SetupStates = setupStates; // Ownership transfer here - SetupMoves = setupMoves; // Ownership transfer here + SetupStates = states; // Ownership transfer here RootMoves.clear(); for (MoveList ml(pos); !ml.end(); ++ml)