X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fevaluate.cpp;h=c1f2bd0c22d8906eaade073303836d66cef366cf;hb=767c4ad1fc487b72240006c888aaf8c00006cd82;hp=4a4ae2ad982b430d941dbcaca85af66a0eb0bf12;hpb=2bfaf454551ae5a9d99d271d0d87d2a6c829c7e4;p=stockfish diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 4a4ae2ad..c1f2bd0c 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -758,7 +758,7 @@ namespace { int outflanking = distance(pos.square(WHITE), pos.square(BLACK)) - distance(pos.square(WHITE), pos.square(BLACK)); - bool pawnsOnBothFlanks = (pos.pieces(PAWN) & QueenSide) + bool pawnsOnBothFlanks = (pos.pieces(PAWN) & QueenSide) && (pos.pieces(PAWN) & KingSide); // Compute the initiative bonus for the attacking side