]> git.sesse.net Git - stockfish/blobdiff - src/book.cpp
Rename MOVES_MAX in MAX_MOVES
[stockfish] / src / book.cpp
index d6dcf6cb3c8bd84798c5551ef92396f0b051c901..8c7cd52c5ca39c482101d87f245bafcca9ef944e 100644 (file)
@@ -459,7 +459,7 @@ Move Book::get_move(const Position& pos, bool findBestMove) {
                  move_to(Move(bookMove)), PieceType(p + 1)));
 
   // Verify the book move (if any) is legal
-  MoveStack mlist[MOVES_MAX];
+  MoveStack mlist[MAX_MOVES];
   MoveStack* last = generate<MV_LEGAL>(pos, mlist);
   for (MoveStack* cur = mlist; cur != last; cur++)
       if ((int(cur->move) & ~(3 << 14)) == bookMove) // Mask out special flags
@@ -508,7 +508,7 @@ int Book::find_entry(uint64_t key) {
 BookEntry Book::read_entry(int idx) {
 
   assert(idx >= 0 && idx < bookSize);
-  assert(is_open());
+  assert(bookFile.is_open());
 
   BookEntry e;