Use occupied_squares() in book_key()
authorMarco Costalba <mcostalba@gmail.com>
Tue, 16 Nov 2010 18:28:09 +0000 (19:28 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Tue, 16 Nov 2010 18:28:09 +0000 (19:28 +0100)
No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/book.cpp

index 0212317f88ce281608af946e1bad631a58c0122b..7cb0863c11158b2f414a0c2868d0a8041b5b3cf9 100644 (file)
@@ -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)
     {