X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.cpp;h=71b9ce0c091412e6424791c1e38bd4553fc04f7c;hp=f5b8b5e275aff3313b74ae061fd8b4455d98dab8;hb=8ceef922662c75c33d105d99732475c125b01081;hpb=f7c013edd08a0e2d26491eb087c145e103e0f708 diff --git a/src/thread.cpp b/src/thread.cpp index f5b8b5e2..71b9ce0c 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -371,10 +371,10 @@ void ThreadPool::start_thinking(const Position& pos, const LimitsType& limits, SetupStates = states; // Ownership transfer here RootMoves.clear(); - for (MoveList ml(pos); !ml.end(); ++ml) + for (MoveList it(pos); !it.end(); ++it) if ( searchMoves.empty() - || std::count(searchMoves.begin(), searchMoves.end(), ml.move())) - RootMoves.push_back(RootMove(ml.move())); + || std::count(searchMoves.begin(), searchMoves.end(), *it)) + RootMoves.push_back(RootMove(*it)); main_thread()->thinking = true; main_thread()->notify_one(); // Starts main thread