diff --git a/AUTHORS b/AUTHORS index fac1e7d8d..1c3f4b97f 100644 --- a/AUTHORS +++ b/AUTHORS @@ -111,6 +111,7 @@ Hongzhi Cheng Ivan Ivec (IIvec) Jacques B. (Timshel) Jake Senne (w1wwwwww) +Jakub Ciolek (jake-ciolek) Jan Ondruš (hxim) Jared Kish (Kurtbusch, kurt22i) Jarrod Torriero (DU-jdto) diff --git a/src/search.cpp b/src/search.cpp index afdda262c..42294ed01 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1653,7 +1653,7 @@ Value Search::Worker::qsearch(Position& pos, Stack* ss, Value alpha, Value beta) // we can prune this move. if (!pos.see_ge(move, alpha - futilityBase)) { - bestValue = std::min(alpha, futilityBase); + bestValue = std::max(bestValue, std::min(alpha, futilityBase)); continue; } }