Tidy up benchmark.cpp
[stockfish] / src / search.cpp
index 3e36948feacac2c30cd4a31b2317f19125bcb074..a50b639ae49283dbec0b2f3e6fb2aa4eb768602d 100644 (file)
@@ -414,8 +414,8 @@ bool think(Position& pos, const SearchLimits& limits, Move searchMoves[]) {
   else
       NodesBetweenPolls = 30000;
 
-  // Look for a book move, only during games, not tests
-  if (Limits.useTimeManagement() && Options["OwnBook"].value<bool>())
+  // Look for a book move
+  if (Options["OwnBook"].value<bool>())
   {
       if (Options["Book File"].value<std::string>() != OpeningBook.name())
           OpeningBook.open(Options["Book File"].value<std::string>());