X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmaterial.cpp;h=89147352ffe8b62c310a3dd2679806f7cb8fc6f8;hp=b6e239644eefb3c24bcdd861bfe3a675b466d81b;hb=d91079d4b02b410702dda082d5c489847f067a35;hpb=62c0dc5dea4b3398afbf2bc015e91fdaedfdb81e diff --git a/src/material.cpp b/src/material.cpp index b6e23964..89147352 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -192,7 +192,7 @@ Entry* probe(const Position& pos, Table& entries, Endgames& endgames) { Value npm_w = pos.non_pawn_material(WHITE); Value npm_b = pos.non_pawn_material(BLACK); - if (npm_w + npm_b == VALUE_ZERO) + if (npm_w + npm_b == VALUE_ZERO && pos.pieces(PAWN)) { if (!pos.count(BLACK)) {