Skip to content

Commit

Permalink
Bench: 22678888
Browse files Browse the repository at this point in the history
  • Loading branch information
TerjeKir committed Dec 27, 2024
1 parent 7608ca3 commit e3c8a29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/evaluate.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ INLINE int EvalThreats(const Position *pos, const EvalInfo *ei, const Color colo
TraceCount(PushThreat);

// Threats by minor pieces
Bitboard targets = theirNonPawns & ~pieceBB(KING);
Bitboard targets = theirNonPawns & ~pieceBB(KING) & ~ei->attackedBy[!color][ALL];
threats = targets & (ei->attackedBy[color][KNIGHT] | ei->attackedBy[color][BISHOP]);
while (threats) {
Square sq = PopLsb(&threats);
Expand Down

0 comments on commit e3c8a29

Please sign in to comment.