From 40903516a5abd38b595d5fabd3d6c947b4dca36c Mon Sep 17 00:00:00 2001 From: rektdie Date: Wed, 14 May 2025 13:42:19 +0200 Subject: [PATCH] checking for hashKey in ScoreMove | bench 1293146 --- source/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/search.cpp b/source/search.cpp index 799dbb6..aa43a94 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -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; } -- 2.47.3