diff --git a/src/search.cpp b/src/search.cpp index 64f8ea189..6b2c28da2 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -585,10 +585,7 @@ Value Search::Worker::search( // Dive into quiescence search when the depth reaches zero if (depth <= 0) - { - constexpr auto nt = PvNode ? PV : NonPV; - return qsearch(pos, ss, alpha, beta); - } + return qsearch(pos, ss, alpha, beta); // Limit the depth if extensions made it too large depth = std::min(depth, MAX_PLY - 1);