]> git.sesse.net Git - stockfish/blobdiff - src/book.cpp
Tidy up benchmark.cpp
[stockfish] / src / book.cpp
index 091767b3ae7c566ee691f1b44f0c3549d8ee52ac..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