Don't process kings after #6609

https://github.com/official-stockfish/Stockfish/pull/6617

No functional change
This commit is contained in:
mstembera
2026-02-18 21:40:01 +01:00
committed by Joost VandeVondele
parent 5b5986b095
commit 84bdf5e2a6
+1 -1
View File
@@ -212,7 +212,7 @@ void FullThreats::append_active_indices(Color perspective, const Position& pos,
for (Color color : {WHITE, BLACK}) for (Color color : {WHITE, BLACK})
{ {
for (PieceType pt = PAWN; pt <= KING; ++pt) for (PieceType pt = PAWN; pt < KING; ++pt)
{ {
Color c = Color(perspective ^ color); Color c = Color(perspective ^ color);
Piece attacker = make_piece(c, pt); Piece attacker = make_piece(c, pt);