mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 13:17:44 +00:00
Reset DrawValue[] before new search
Spotted by Ronald de Man bench: 7384368
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user