diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 1ee727da597..72c23f1996d 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -434,7 +434,7 @@ Value do_evaluate(const Position& pos) { { ei.kingRing[Them] = b | shift_bb(b); b &= ei.attackedBy[Us][PAWN]; - ei.kingAttackersCount[Us] = b ? popcount(b) / 2 : 0; + ei.kingAttackersCount[Us] = b ? popcount(b) : 0; ei.kingAdjacentZoneAttacksCount[Us] = ei.kingAttackersWeight[Us] = 0; } else