Small cleanups 13
[stockfish] / src / pawns.cpp
index fde70ba5306b6b47bec6d01f597c19fac0ada86c..68aaf331a8b0668bb772495a4ed6430684b0bdec 100644 (file)
@@ -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;