From f7a055ae5275a10a28b649aeeefdf4f9e9d39e46 Mon Sep 17 00:00:00 2001 From: rektdie Date: Thu, 27 Mar 2025 20:39:24 +0100 Subject: [PATCH] small change | bench 684523 --- source/search.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/search.cpp b/source/search.cpp index 8324a48..d8a8e24 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -269,12 +269,13 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) { score = -PVS(copy, depth - 1, -beta, -alpha, ply + 1).score; } + if (searchStopped) return 0; + moveSeen++; positionIndex--; // Fail high (beta cutoff) if (score >= beta) { - if (searchStopped) return 0; if (!currMove.IsCapture()) { killerMoves[1][ply] = killerMoves[0][ply]; killerMoves[0][ply] = currMove;