From: Marco Costalba Date: Mon, 21 Apr 2014 12:30:27 +0000 (+0200) Subject: Reset DrawValue[] before new search X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=56273fca1edc51ffa0efc73715609f428c000c97;ds=sidebyside Reset DrawValue[] before new search Spotted by Ronald de Man bench: 7384368 --- diff --git a/src/search.cpp b/src/search.cpp index 03af5d66..216964ab 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -186,6 +186,7 @@ void Search::think() { RootColor = RootPos.side_to_move(); TimeMgr.init(Limits, RootPos.game_ply(), RootColor); + DrawValue[0] = DrawValue[1] = VALUE_DRAW; Contempt[0] = Options["Contempt Factor"] * PawnValueEg / 100; // From centipawns Contempt[1] = (Options["Contempt Factor"] + 12) * PawnValueEg / 100;