X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=5b4913c3d3dcdbe733ec30c92e8f90f152843c7a;hp=e2032638b8650ce112968c4329ea4b08e77ee10e;hb=cdf1f23bc5770c5d9e109dd254dcc54eee383464;hpb=e86468cc631ede99530998a6ad269e328f25f808 diff --git a/src/search.cpp b/src/search.cpp index e2032638..5b4913c3 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -2174,8 +2174,11 @@ namespace { H.success(pos.piece_on(move_from(m)), m, depth); for (int i = 0; i < moveCount - 1; i++) - if (ok_to_history(pos, movesSearched[i]) && m != movesSearched[i]) + { + assert(m != movesSearched[i]); + if (ok_to_history(pos, movesSearched[i])) H.failure(pos.piece_on(move_from(movesSearched[i])), movesSearched[i]); + } } // fail_high_ply_1() checks if some thread is currently resolving a fail