X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbook.cpp;h=8c7cd52c5ca39c482101d87f245bafcca9ef944e;hp=d6dcf6cb3c8bd84798c5551ef92396f0b051c901;hb=c9d7e99de682516c560009b550c41da9ae2008b8;hpb=04108d45414c70c796d9378b247207b574e22414 diff --git a/src/book.cpp b/src/book.cpp index d6dcf6cb..8c7cd52c 100644 --- a/src/book.cpp +++ b/src/book.cpp @@ -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(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;