X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.cpp;h=68aaf331a8b0668bb772495a4ed6430684b0bdec;hp=fde70ba5306b6b47bec6d01f597c19fac0ada86c;hb=9fb6383ed804d0bc86d52b07def14352f44eb5b4;hpb=7fc47eeb6f6b5f3c5ff697e974093ff14413e42c diff --git a/src/pawns.cpp b/src/pawns.cpp index fde70ba5..68aaf331 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -176,8 +176,8 @@ namespace { score -= Doubled * doubled + WeakLever * more_than_one(lever); - if (blocked && r > RANK_4) - score += BlockedPawn[r-4]; + if (blocked && r >= RANK_5) + score += BlockedPawn[r - RANK_5]; } return score;