X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.cpp;h=c25fc129cd4ef0bc570e9377ecfe63765e8fb294;hp=c232b849babacc66ef6e262322678b18883a37e5;hb=0af24a14455bbcde181fff7632722ce55419991e;hpb=60c121f3b1ee7d5ced3435cc1718e4e6e6fd8383 diff --git a/src/thread.cpp b/src/thread.cpp index c232b849..c25fc129 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -365,10 +365,10 @@ void ThreadPool::start_thinking(const Position& pos, const LimitsType& limits, assert(!states.get()); } - for (const ExtMove& ms : MoveList(pos)) + for (const auto& m : MoveList(pos)) if ( limits.searchmoves.empty() - || std::count(limits.searchmoves.begin(), limits.searchmoves.end(), ms.move)) - RootMoves.push_back(RootMove(ms.move)); + || std::count(limits.searchmoves.begin(), limits.searchmoves.end(), m)) + RootMoves.push_back(RootMove(m)); main()->thinking = true; main()->notify_one(); // Starts main thread