From 23518a698e829b04d4516b3dd1fb5c8340d84ff7 Mon Sep 17 00:00:00 2001 From: Terje Date: Sun, 27 Aug 2023 02:57:38 +0200 Subject: [PATCH] Bench: 24483222 --- src/search.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/search.c b/src/search.c index a2af91c2..f45a9cec 100644 --- a/src/search.c +++ b/src/search.c @@ -197,6 +197,8 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth Position *pos = &thread->pos; MovePicker mp; + Move quiets[32]; + Move noisys[32]; ss->pv.length = 0; ss->doubleExtensions = (ss-1)->doubleExtensions; @@ -257,7 +259,7 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth // Give a history bonus to quiet tt moves that causes a cutoff if (ttScore >= beta && moveIsQuiet(ttMove)) - QuietHistoryUpdate(ttMove, Bonus(depth)); + UpdateQuietHistory(thread, ss, ttMove, Bonus(depth), depth, quiets, 0); return ttScore; } @@ -384,8 +386,6 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth InitNormalMP(&mp, thread, ss, depth, ttMove, ss->killers[0], ss->killers[1]); - Move quiets[32]; - Move noisys[32]; Move bestMove = NOMOVE; int moveCount = 0, quietCount = 0, noisyCount = 0; int score = -INFINITE;