From 21a64294cf138e461587de27634f11a397e31dbe Mon Sep 17 00:00:00 2001 From: rektdie Date: Thu, 26 Mar 2026 22:31:22 +0100 Subject: [PATCH] bugfix: used moveSeen incorrectly | bench 1279897 --- source/search.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/search.cpp b/source/search.cpp index c6c769e..121d8f2 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -677,11 +677,11 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC score = -PVS(copy, newDepth, -alpha - 1, -alpha, ply + 1, ctx, !cutnode).score; } - } else if (!isPV || moveSeen > 1) { + } else if (!isPV || moveSeen > 0) { score = -PVS(copy, newDepth, -alpha - 1, -alpha, ply + 1, ctx, !cutnode).score; } - if (isPV && (moveSeen == 1 || score > alpha)) { + if (isPV && (moveSeen == 0 || score > alpha)) { score = -PVS(copy, newDepth, -beta, -alpha, ply + 1, ctx, false).score; }