X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=32bd35f6be805fe9514a9e35a587606881bc6422;hp=e3eb0b33522a2bde91bd0d793a22744d0abb53b1;hb=6c27bf18808889ae4aef73d03c6d6a8f7a6107b5;hpb=da1165ae5dd7514cf9e0a27e7d231bde61431996 diff --git a/src/evaluate.cpp b/src/evaluate.cpp index e3eb0b33..32bd35f6 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -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(pos, ei, s); // Special patterns: trapped bishops on a7/h7/a2/h2