]> git.sesse.net Git - stockfish/commitdiff
Cleanup qsearch continuation histories
authorShahin M. Shahin <41402573+peregrineshahin@users.noreply.github.com>
Sat, 14 Oct 2023 15:08:51 +0000 (18:08 +0300)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sat, 21 Oct 2023 08:26:09 +0000 (10:26 +0200)
Only (ss-1) and (ss-2) are used in qsearch.

closes https://github.com/official-stockfish/Stockfish/pull/4828

No functional change

src/search.cpp

index 16c6b0f38f85ad9efd8c1eda19e4d7ca0ef4b105..0ebf4e20276fc0fed08e39a8448b8e7d3830ed2e 100644 (file)
@@ -1506,9 +1506,7 @@ moves_loop: // When in check, search starts here
         futilityBase = std::min(ss->staticEval, bestValue) + 200;
     }
 
-    const PieceToHistory* contHist[] = { (ss-1)->continuationHistory, (ss-2)->continuationHistory,
-                                         (ss-3)->continuationHistory, (ss-4)->continuationHistory,
-                                          nullptr                   , (ss-6)->continuationHistory };
+    const PieceToHistory* contHist[] = {(ss-1)->continuationHistory, (ss-2)->continuationHistory};
 
     // Initialize a MovePicker object for the current position, and prepare
     // to search the moves. Because the depth is <= 0 here, only captures,