]> git.sesse.net Git - stockfish/blobdiff - src/thread.cpp
Use type_of() to categorize the moves
[stockfish] / src / thread.cpp
index ae0fa1ceddd33779ddc333e58748f5ad3a13779c..0fbcc1fc65795395d7678c297da49267cee1ff10 100644 (file)
@@ -441,7 +441,7 @@ void ThreadPool::start_searching(const Position& pos, const LimitsType& limits,
   Limits = limits;
   RootMoves.clear();
 
-  for (MoveList<MV_LEGAL> ml(pos); !ml.end(); ++ml)
+  for (MoveList<LEGAL> ml(pos); !ml.end(); ++ml)
       if (searchMoves.empty() || count(searchMoves.begin(), searchMoves.end(), ml.move()))
           RootMoves.push_back(RootMove(ml.move()));