From cf10644d6e2592e663e48b3d41dae07e7294166e Mon Sep 17 00:00:00 2001 From: Nonlinear2 <131959792+Nonlinear2@users.noreply.github.com> Date: Sun, 8 Dec 2024 22:24:29 +0100 Subject: [PATCH] Fix duplicate code (#5711) closes https://github.com/official-stockfish/Stockfish/pull/5711 No functional change --- src/search.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 3ce30b81309..e352c96e33e 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1041,9 +1041,7 @@ Value Search::Worker::search( { if (bestValue <= futilityValue && !is_decisive(bestValue) && !is_win(futilityValue)) - if (bestValue <= futilityValue && !is_decisive(bestValue) - && !is_win(futilityValue)) - bestValue = futilityValue; + bestValue = futilityValue; continue; }