summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2026-08-26 00:33:57 -0700
committerScott Gasch <[email protected]>2026-08-26 00:33:57 -0700
commitdd40b5e159ebcf029ee0c36711a5a74a8370b18d (patch)
treece3328492e97707fcdcfd5231e7b1ce492081d9c /src
parente08387ae3e9049b22aa0e56ccfa934c997fa1f87 (diff)
Segfault fix.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/search.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/search.c b/src/search.c
index bfb293e..97cc850 100755
--- a/src/search.c
+++ b/src/search.c
@@ -486,6 +486,7 @@ Search(IN SEARCHER_THREAD_CONTEXT *ctx,
if (((uLegalMoves >= 2)) &&
(0 != g_uNumHelpersAvailable) &&
(0 == uFutilityMargin) &&
+ (uDepth >= ONE_PLY) &&
(TRUE == g_fCanSplit[uDepth / ONE_PLY - 1]) &&
(MOVE_COUNT(ctx, ctx->uPly) > 3))
{