summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/search.c')
-rwxr-xr-xsrc/search.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/search.c b/src/search.c
index ce867b6..6c8a945 100755
--- a/src/search.c
+++ b/src/search.c
@@ -1147,7 +1147,8 @@ QSearch(IN SEARCHER_THREAD_CONTEXT *ctx,
// set and valid, it means this is not a "quiet" position. If the
// side on the move has not been able to stand pat yet, don't let
// them now -- force them to play a move and recurse.
- if (0 != ValueOfMaterialInTroubleDespiteMove(ctx, pos->uToMove))
+ if (0 != ValueOfMaterialInTroubleDespiteMove(ctx, pos->uToMove) &&
+ FALSE == ctx->sSearchFlags.fCouldStandPat[pos->uToMove])
{
iBestScore = iAlpha;
}