X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=dd9e45b92e33b3ad606b6c10a40294fa77349058;hp=4481cfc727e436b8888825c94ec4bc99d261b21e;hb=aa86d81f79a92a5a050f73e1443190e53aa9f2ed;hpb=0d88b832e38430e0add9c8298458569b23e102a7 diff --git a/src/search.cpp b/src/search.cpp index 4481cfc7..dd9e45b9 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) @@ -1142,9 +1142,6 @@ namespace { search_pv(pos, ss, alpha, beta, depth-2*OnePly, ply, threadID); ttMove = ss[ply].pv[ply]; tte = TT.retrieve(pos.get_key()); - - // If tte->move() != MOVE_NONE then it equals ttMove - assert(!(tte && tte->move()) || tte->move() == ttMove); } // Initialize a MovePicker object for the current position, and prepare