X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.cpp;h=8d66988029dd2ebc98a8e882e7eed10da0df0f0e;hp=2dcbf91093dc7379d0281ccae235838d9c99f031;hb=7eb6a488ade31254151fd516aa4c94fc56b84a1f;hpb=72641dcaae2241c830254fc19b742eb477d831a3 diff --git a/src/thread.cpp b/src/thread.cpp index 2dcbf910..8d669880 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -429,7 +429,7 @@ void ThreadsManager::wait_for_search_finished() { // main_loop() so to start a new search, then returns immediately. void ThreadsManager::start_searching(const Position& pos, const LimitsType& limits, - const std::set& searchMoves) { + const std::vector& searchMoves) { wait_for_search_finished(); SearchTime.restart(); // As early as possible @@ -442,7 +442,7 @@ void ThreadsManager::start_searching(const Position& pos, const LimitsType& limi RootMoves.clear(); for (MoveList ml(pos); !ml.end(); ++ml) - if (searchMoves.empty() || searchMoves.count(ml.move())) + if (searchMoves.empty() || count(searchMoves.begin(), searchMoves.end(), ml.move())) RootMoves.push_back(RootMove(ml.move())); threads[0]->do_sleep = false;