From ad5b5cef4ae963776b0567c23e9ebc32014b9490 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Fri, 18 Dec 2009 10:11:50 +0100 Subject: [PATCH] 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 --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 4481cfc7..409ad20a 100644 --- a/src/search.cpp +++ b/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) -- 2.39.2