X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.cpp;h=541610a1ca4b2bd5a63d16323c4d2aed991aae21;hp=ce2f41f2ffeae29008890a7917fdc3302807d827;hb=3df2c01b5769c7ae996fb5b992c06e4a5428ad35;hpb=cbd7ce468c97ac74efcd497e5196f011b5a646c9 diff --git a/src/thread.cpp b/src/thread.cpp index ce2f41f2..541610a1 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -414,7 +414,7 @@ void ThreadPool::wait_for_search_finished() { // a new search, then returns immediately. void ThreadPool::start_searching(const Position& pos, const LimitsType& limits, - const std::vector& searchMoves) { + const std::vector& searchMoves, StateStackPtr& states) { wait_for_search_finished(); SearchTime.restart(); // As early as possible @@ -424,6 +424,7 @@ void ThreadPool::start_searching(const Position& pos, const LimitsType& limits, RootPosition = pos; Limits = limits; + SetupStates = states; // Ownership transfer here RootMoves.clear(); for (MoveList ml(pos); !ml.end(); ++ml)