]> git.sesse.net Git - stockfish/blobdiff - src/endgame.cpp
Use type_of() to categorize the moves
[stockfish] / src / endgame.cpp
index f5f2074cff44469d34e86c724d812abb07a2c083..273f040ac40d5dc51219bd8e7845f81e981f9525 100644 (file)
@@ -134,7 +134,7 @@ Value Endgame<KXK>::operator()(const Position& pos) const {
   // Stalemate detection with lone king
   if (    pos.side_to_move() == weakerSide
       && !pos.in_check()
-      && !MoveList<MV_LEGAL>(pos).size()) {
+      && !MoveList<LEGAL>(pos).size()) {
     return VALUE_DRAW;
   }