X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=9739a0018ab24861f5fea5d811cd3bd2ad2b3823;hp=f245a430ec7e4097720566aea7187399e31fc045;hb=d30994ecd54bf96db88016fb6d92ff2c4614bc2e;hpb=bd04f9a0f1238c396e5503e07375ae90d7b5cfa8;ds=inline diff --git a/src/evaluate.cpp b/src/evaluate.cpp index f245a430..9739a001 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -392,8 +392,8 @@ namespace { | ei.attackedBy[Us][QUEEN]); // ... and those which are not defended at all in the larger king ring - b = ei.attackedBy[Them][ALL_PIECES] & ~ei.attackedBy[Us][ALL_PIECES] - & ei.kingRing[Us] & ~pos.pieces(Them); + b = ei.attackedBy[Them][ALL_PIECES] & ~ei.attackedBy[Us][ALL_PIECES] + & ei.kingRing[Us] & ~pos.pieces(Them); // Initialize the 'attackUnits' variable, which is used later on as an // index into the KingDanger[] array. The initial value is based on the