]> git.sesse.net Git - stockfish/commitdiff
Format Code
authorDisservin <disservin.social@gmail.com>
Fri, 27 Oct 2023 15:33:41 +0000 (17:33 +0200)
committerDisservin <disservin.social@gmail.com>
Fri, 27 Oct 2023 15:33:59 +0000 (17:33 +0200)
No functional change

src/search.cpp

index 65b27d16d4f4f68c02350f8f8d65a9bdfc54abfb..b7b51e0b3deb239a7b7c226aeed7781322bca651 100644 (file)
@@ -768,9 +768,12 @@ Value search(Position& pos, Stack* ss, Value alpha, Value beta, Depth depth, boo
         {
             if (!priorCapture && prevSq != SQ_NONE)
             {
-                int bonus = (depth > 6) + (PvNode || cutNode) + (value < alpha - 658) + ((ss-1)->moveCount > 11);
-                update_continuation_histories(ss-1, pos.piece_on(prevSq), prevSq, stat_bonus(depth) * bonus);
-                thisThread->mainHistory[~us][from_to((ss-1)->currentMove)] << stat_bonus(depth) * bonus * 57 / 100;
+                int bonus = (depth > 6) + (PvNode || cutNode) + (value < alpha - 658)
+                          + ((ss - 1)->moveCount > 11);
+                update_continuation_histories(ss - 1, pos.piece_on(prevSq), prevSq,
+                                              stat_bonus(depth) * bonus);
+                thisThread->mainHistory[~us][from_to((ss - 1)->currentMove)]
+                  << stat_bonus(depth) * bonus * 57 / 100;
             }
             return value;
         }