X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmaterial.cpp;h=b106892bcfa83fdbae9ec553c03871a194224c32;hp=50b3a2aaa0a5d7ea30c283b2136c719704997c1d;hb=6e5a334c9502fde4a3da88a615f10181a2ab7367;hpb=7a8429d9f15a45c5a60f98c4aed798d10d511300 diff --git a/src/material.cpp b/src/material.cpp index 50b3a2aa..b106892b 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -127,8 +127,8 @@ MaterialEntry* MaterialTable::probe(const Position& pos) { { // Minor piece endgame with at least one minor piece per side and // no pawns. Note that the case KmmK is already handled by KXK. - assert((pos.pieces(KNIGHT, WHITE) | pos.pieces(BISHOP, WHITE))); - assert((pos.pieces(KNIGHT, BLACK) | pos.pieces(BISHOP, BLACK))); + assert((pos.pieces(WHITE, KNIGHT) | pos.pieces(WHITE, BISHOP))); + assert((pos.pieces(BLACK, KNIGHT) | pos.pieces(BLACK, BISHOP))); if ( pos.piece_count(WHITE, BISHOP) + pos.piece_count(WHITE, KNIGHT) <= 2 && pos.piece_count(BLACK, BISHOP) + pos.piece_count(BLACK, KNIGHT) <= 2)