From 84bdf5e2a6b8e5aea540a12155452d70c601a498 Mon Sep 17 00:00:00 2001 From: mstembera <5421953+mstembera@users.noreply.github.com> Date: Tue, 17 Feb 2026 13:40:25 -0800 Subject: [PATCH] Don't process kings after #6609 https://github.com/official-stockfish/Stockfish/pull/6617 No functional change --- src/nnue/features/full_threats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nnue/features/full_threats.cpp b/src/nnue/features/full_threats.cpp index baa444843..03ad158e6 100644 --- a/src/nnue/features/full_threats.cpp +++ b/src/nnue/features/full_threats.cpp @@ -212,7 +212,7 @@ void FullThreats::append_active_indices(Color perspective, const Position& pos, for (Color color : {WHITE, BLACK}) { - for (PieceType pt = PAWN; pt <= KING; ++pt) + for (PieceType pt = PAWN; pt < KING; ++pt) { Color c = Color(perspective ^ color); Piece attacker = make_piece(c, pt);