storing to TT after checking if search stopped | bench 684523

This commit is contained in:
rektdie committed 2025-03-26 17:50:40 +01:00
1 parent 600d50b91f
commit 68b5168a40
1 file changed
+1 -1
+1 -1
View File
@@ -303,8 +303,8 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) {
}
}
TT.WriteEntry(board.hashKey, depth, results.score, nodeType, results.bestMove);
if (searchStopped) return 0;
TT.WriteEntry(board.hashKey, depth, results.score, nodeType, results.bestMove);
return results;
}