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;