X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fthread.cpp;h=c25fc129cd4ef0bc570e9377ecfe63765e8fb294;hb=8f10f6c9cd250f67dc0a9a1426794802a16dcc5e;hp=c232b849babacc66ef6e262322678b18883a37e5;hpb=60c121f3b1ee7d5ced3435cc1718e4e6e6fd8383;p=stockfish 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