]> git.sesse.net Git - stockfish/blobdiff - src/pawns.cpp
Remove useless condition in KXK endgame
[stockfish] / src / pawns.cpp
index 74aa0e0dd95892df9b1cdd44e00dc0c9a6d02638..718dd575957076d73e62b0bf47350619e826891c 100644 (file)
@@ -104,7 +104,7 @@ namespace {
     e->kingSquares[Us] = SQ_NONE;
     e->semiopenFiles[Us] = 0xFF;
     e->pawnAttacks[Us] = shift_bb<Right>(ourPawns) | shift_bb<Left>(ourPawns);
-    e->pawnsOnSquares[Us][BLACK] = popcount<Max15>(ourPawns & BlackSquares);
+    e->pawnsOnSquares[Us][BLACK] = popcount<Max15>(ourPawns & DarkSquares);
     e->pawnsOnSquares[Us][WHITE] = pos.count<PAWN>(Us) - e->pawnsOnSquares[Us][BLACK];
 
     // Loop through all pawns of the current color and score each pawn