X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.cpp;h=c25fc129cd4ef0bc570e9377ecfe63765e8fb294;hp=c232b849babacc66ef6e262322678b18883a37e5;hb=65f46794af41534e0dc744c6f7531a4c43eca857;hpb=81d6c4a0d60f589f36a970f48bf179ae509aa4b0 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