X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbook.cpp;h=7cb0863c11158b2f414a0c2868d0a8041b5b3cf9;hp=0212317f88ce281608af946e1bad631a58c0122b;hb=00d9fe8af09891e82d66f88c48b513d6a7326f2a;hpb=9dcc2aad98b970380a66b61f2238875e9051de97 diff --git a/src/book.cpp b/src/book.cpp index 0212317f..7cb0863c 100644 --- a/src/book.cpp +++ b/src/book.cpp @@ -528,7 +528,7 @@ namespace { uint64_t book_key(const Position& pos) { uint64_t result = 0; - Bitboard b = pos.pieces_of_color(WHITE) | pos.pieces_of_color(BLACK); + Bitboard b = pos.occupied_squares(); while (b) {