From: Marco Costalba Date: Fri, 18 Dec 2009 09:11:50 +0000 (+0100) Subject: Fix book name is hard coded as book.bin X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=ad5b5cef4ae963776b0567c23e9ebc32014b9490;ds=sidebyside 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 --- 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)