X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmaterial.cpp;h=b106892bcfa83fdbae9ec553c03871a194224c32;hp=50b3a2aaa0a5d7ea30c283b2136c719704997c1d;hb=b9bc6e823f061753419e563c4f923e60bd8c6193;hpb=5e905800887da94d481978d3bddd9539b2111458 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)