Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix book name is hard coded as book.bin

Instead should be read by the corresponding UCI
option "Book File".

Bug reported and fixed by Justin Blanchard (Arch Linux)

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
  • Loading branch information...
commit ad5b5cef4ae963776b0567c23e9ebc32014b9490 1 parent 0d88b83
@mcostalba authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/search.cpp
View
2  src/search.cpp
@@ -373,7 +373,7 @@ bool think(const Position& pos, bool infinite, bool ponder, int side_to_move,
{
Move bookMove;
if (get_option_value_string("Book File") != OpeningBook.file_name())
- OpeningBook.open("book.bin");
+ OpeningBook.open(get_option_value_string("Book File"));
bookMove = OpeningBook.get_move(pos);
if (bookMove != MOVE_NONE)
Please sign in to comment.
Something went wrong with that request. Please try again.