X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=6a42cc50b05a233bb181ac884bcefaec6268a062;hp=ff489c9627395a99109e89fbd0186c0359d1f5d4;hb=a86057649364547066f65d088809ae490856587b;hpb=786564068bb22c750c41649733d4aa6733accaec diff --git a/src/search.cpp b/src/search.cpp index ff489c96..6a42cc50 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -216,7 +216,7 @@ namespace { int8_t ReductionMatrix[2][64][64]; // [pv][depth][moveNumber] template - inline Depth reduction(Depth d, int mn) { return (Depth) ReductionMatrix[PV][Min(d / 2, 63)][Min(mn, 63)]; } + inline Depth reduction(Depth d, int mn) { return (Depth) ReductionMatrix[PV][Min(d / ONE_PLY, 63)][Min(mn, 63)]; } // Easy move margin. An easy move candidate must be at least this much // better than the second best move.