Reset DrawValue[] before new search

Spotted by Ronald de Man

bench: 7384368
This commit is contained in:
Marco Costalba
2014-04-21 14:30:27 +02:00
parent ef43e6b05d
commit 56273fca1e
+1
View File
@@ -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;