Remove redundant LMR condition
authorFabian Fichter <ianfab@users.noreply.github.com>
Fri, 19 Jun 2020 19:03:01 +0000 (21:03 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Fri, 19 Jun 2020 19:03:01 +0000 (21:03 +0200)
No functional change.

src/search.cpp

index 7629f9e..67c713a 100644 (file)
@@ -1236,7 +1236,7 @@ moves_loop: // When in check, search starts from here
           if (singularLMR)
               r -= 2;
 
-          if (!captureOrPromotion && !(pos.must_capture() && MoveList<CAPTURES>(pos).size()))
+          if (!captureOrPromotion)
           {
               // Increase reduction if ttMove is a capture (~5 Elo)
               if (ttCapture)