From 69d8bc906404702aae833bf407976e4b669b33f5 Mon Sep 17 00:00:00 2001 From: rektdie Date: Fri, 23 May 2025 01:37:31 +0200 Subject: [PATCH] node after a nullmove is not a cutnode | bench 3915796 --- source/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/search.cpp b/source/search.cpp index 5a21883..79f6fc2 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -277,7 +277,7 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC // Always legal so we dont check it ctx.doingNullMove = true; - int score = -PVS(copy, depth - 3, -beta, -beta + 1, ply + 1, ctx, true).score; + int score = -PVS(copy, depth - 3, -beta, -beta + 1, ply + 1, ctx, false).score; ctx.doingNullMove = false; if (ctx.searchStopped) return 0;