Merge pull request #59 from rektdie/TT-fix

checking for hashKey in ScoreMove | bench 1293146
This commit was merged in pull request #59.
This commit is contained in:
rektdie authored and GitHub committed 2025-05-14 17:14:32 +02:00
commit 2cd6c2fb10
1 file changed
+1 -1
+1 -1
View File
@@ -25,7 +25,7 @@ void InitLMRTable() {
static int ScoreMove(Board &board, Move &move, int ply, SearchContext& ctx) {
TTEntry *current = ctx.TT.GetRawEntry(board.hashKey);
if (current->bestMove == move) {
if (current->hashKey == board.hashKey && current->bestMove == move) {
return 50000;
}