X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=9980dcf95b1aeb347986ce6cab2e6ac2000fe00f;hp=5452363192cd30cb534d5f859247840b2837339a;hb=77c91ac1ba45c55584de81b58116361564c6a69a;hpb=0587c5b605fc9f0c23dab3a890b2986276c259cb diff --git a/src/search.cpp b/src/search.cpp index 54523631..9980dcf9 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -538,6 +538,10 @@ namespace { if (alpha >= beta) return alpha; } + else + { + if(pos.is_draw()) return DrawValue[pos.side_to_move()]; + } // Step 4. Transposition table lookup // We don't want the score of a partial search to overwrite a previous full search