fixed ttHit bool | bench 10099292
This commit is contained in:
1 parent
311fc28c1c
commit
760894dd1a
1 file changed
+3
-2
+3
-2
@@ -363,11 +363,12 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
|
||||
if (!ctx->excluded)
|
||||
entry = ctx->TT.GetRawEntry(board.hashKey);
|
||||
|
||||
const bool ttHit = entry != nullptr && entry->score != invalidEntry;
|
||||
const bool ttHit = entry != nullptr
|
||||
&& entry->hashKey == board.hashKey;
|
||||
|
||||
if constexpr (!isPV) {
|
||||
if (ttHit) {
|
||||
if ((entry->hashKey == board.hashKey && entry->depth >= depth) &&
|
||||
if (entry->depth >= depth &&
|
||||
((entry->nodeType == PV) ||
|
||||
(entry->nodeType == AllNode && entry->score <= alpha) ||
|
||||
(entry->nodeType == CutNode && entry->score >= beta))) {
|
||||
|
||||
Reference in new issue
Block a user