X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmaterial.cpp;h=abad2abb923e053291bb22e41d21585b8573e47d;hp=22953cff6d8d4328706cb1ffe4299d46214d2c05;hb=ee5514b8fdc6583d134985edd2f875e197830030;hpb=4ede49cd850392f28bc9da9537c111d2c3f0b297 diff --git a/src/material.cpp b/src/material.cpp index 22953cff..abad2abb 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -259,7 +259,7 @@ Entry* probe(const Position& pos, Table& entries, Endgames& endgames) { int minorPieceCount = pos.count(WHITE) + pos.count(WHITE) + pos.count(BLACK) + pos.count(BLACK); - e->spaceWeight = minorPieceCount * minorPieceCount; + e->spaceWeight = make_score(minorPieceCount * minorPieceCount, 0); } // Evaluate the material imbalance. We use PIECE_TYPE_NONE as a place holder