diff --git a/src/search.cpp b/src/search.cpp index 5636efa0..9a433445 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -473,8 +473,7 @@ Value search(Position *pos, Sanmill::Stack &ss, Depth depth, Depth ori #ifdef TRANSPOSITION_TABLE_ENABLE TranspositionTable::save(bestValue, depth, - bestValue >= beta ? BOUND_LOWER : - BOUND_UPPER, + TranspositionTable::boundType(bestValue, alpha, beta), posKey #ifdef TT_MOVE_ENABLE , bestMove