X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=ac4d85b69996eb7abadda3cf61fcd9d50ec39cf7;hp=7bc90b143d10b85a94ff0a4cbf9f214e9d0b3525;hb=7c55b0e880b68c0242d27a0471f8d535f02703f0;hpb=cddda7cd194c38c6d4e87956b0b32f52755fc62a diff --git a/src/search.cpp b/src/search.cpp index 7bc90b14..ac4d85b6 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1556,7 +1556,7 @@ namespace { { // Store the score to avoid a future costly evaluation() call if (!isCheck && !tte && ei.futilityMargin == 0) - TT.store(pos.get_key(), bestValue - ply, VALUE_TYPE_EVAL, Depth(-127*OnePly), MOVE_NONE); + TT.store(pos.get_key(), value_to_tt(bestValue, ply), VALUE_TYPE_EVAL, Depth(-127*OnePly), MOVE_NONE); return bestValue; }