]> git.sesse.net Git - stockfish/blobdiff - src/endgame.cpp
Handle UCI command "mate in x moves"
[stockfish] / src / endgame.cpp
index c0d317b779234f4ae5cca323c221ffb5be8c4c93..d60ce3967773d4a4811702a5c77a291527a56199 100644 (file)
@@ -133,7 +133,7 @@ Value Endgame<KXK>::operator()(const Position& pos) const {
 
   // Stalemate detection with lone king
   if (    pos.side_to_move() == weakerSide
-      && !pos.in_check()
+      && !pos.checkers()
       && !MoveList<LEGAL>(pos).size()) {
     return VALUE_DRAW;
   }