X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.cpp;h=782cf1acc0dd5153fb8ba3bebad8cf69bc35da12;hp=71b9ce0c091412e6424791c1e38bd4553fc04f7c;hb=d3608c4e79a29110f4c4a369d7207c6dd8e01f34;hpb=38cfbeeb50c7dde79450f1b44171d5655e555ae5 diff --git a/src/thread.cpp b/src/thread.cpp index 71b9ce0c..782cf1ac 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -371,7 +371,7 @@ void ThreadPool::start_thinking(const Position& pos, const LimitsType& limits, SetupStates = states; // Ownership transfer here RootMoves.clear(); - for (MoveList it(pos); !it.end(); ++it) + for (MoveList it(pos); *it; ++it) if ( searchMoves.empty() || std::count(searchMoves.begin(), searchMoves.end(), *it)) RootMoves.push_back(RootMove(*it));