X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=da20f15e3352964a596137a7f581e2e885b9e6ed;hp=3116e80e8b6f2b7ba66eebab3282c59b79cd534c;hb=4502917665d50394ead903d0b82c6e7b4777b99d;hpb=5af8179647b9e80353cb8f532990cae572ba6412 diff --git a/src/search.cpp b/src/search.cpp index 3116e80e..da20f15e 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -893,7 +893,7 @@ split_point_start: // At split points actual search starts from here } // Check for legality only before to do the move - if (!pos.pl_move_is_legal(move, ci.pinned)) + if (!RootNode && !SpNode && !pos.pl_move_is_legal(move, ci.pinned)) { moveCount--; continue;