From dfef7e75209a6d14f16618dd6040c0898522d89d Mon Sep 17 00:00:00 2001 From: FauziAkram Date: Fri, 28 Mar 2025 17:57:04 +0300 Subject: [PATCH] Remove redundant assignment closes https://github.com/official-stockfish/Stockfish/pull/5944 No functional change --- src/search.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 8e8e93538..99bf47825 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -298,14 +298,10 @@ void Search::Worker::iterative_deepening() { &this->continuationHistory[0][0][NO_PIECE][0]; // Use as a sentinel (ss - i)->continuationCorrectionHistory = &this->continuationCorrectionHistory[NO_PIECE][0]; (ss - i)->staticEval = VALUE_NONE; - (ss - i)->reduction = 0; } for (int i = 0; i <= MAX_PLY + 2; ++i) - { - (ss + i)->ply = i; - (ss + i)->reduction = 0; - } + (ss + i)->ply = i; ss->pv = pv;