1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-07-11 19:49:14 +00:00

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

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;