checking for hashKey in ScoreMove | bench 1293146

This commit is contained in:
rektdie committed 2025-05-14 13:42:19 +02:00
1 parent c84984b88d
commit 40903516a5
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) { static int ScoreMove(Board &board, Move &move, int ply, SearchContext& ctx) {
TTEntry *current = ctx.TT.GetRawEntry(board.hashKey); TTEntry *current = ctx.TT.GetRawEntry(board.hashKey);
if (current->bestMove == move) { if (current->hashKey == board.hashKey && current->bestMove == move) {
return 50000; return 50000;
} }