]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
Simplify search results update
[stockfish] / src / evaluate.cpp
index 9584c0ed94184b9ab941fa6773f65fef2f55020d..68984802e5193185aae5b3f648173563948bd94d 100644 (file)
@@ -989,7 +989,7 @@ Value do_evaluate(const Position& pos, Value& margin) {
             // black pawns: a4, b4 white: b2 then pawn in b4 is giving support.
             if (!opposed)
             {
-                b2 = supporters & in_front_bb(winnerSide, blockSq + pawn_push(winnerSide));
+                b2 = supporters & in_front_bb(winnerSide, rank_of(blockSq + pawn_push(winnerSide)));
 
                 while (b2) // This while-loop could be replaced with LSB/MSB (depending on color)
                 {