]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
Change color argument of square_is_weak()
[stockfish] / src / evaluate.cpp
index e3eb0b33522a2bde91bd0d793a22744d0abb53b1..32bd35f6be805fe9514a9e35a587606881bc6422 100644 (file)
@@ -556,7 +556,7 @@ namespace {
             ei.value -= Sign[Us] * ThreatedByPawnPenalty[Piece];
 
         // Bishop and knight outposts squares
-        if ((Piece == BISHOP || Piece == KNIGHT) && pos.square_is_weak(s, Them))
+        if ((Piece == BISHOP || Piece == KNIGHT) && pos.square_is_weak(s, Us))
             evaluate_outposts<Piece, Us>(pos, ei, s);
 
         // Special patterns: trapped bishops on a7/h7/a2/h2