mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 11:06:58 +08:00
Remove useless assignments to currentMove
We reference (ss-1)->currentMove, i.e. we peek current move of the parent node, so currentMove should be valid in the main move loop, when we search() the subtree, but outside of main loop it is useless. No functional change.
This commit is contained in:
@@ -636,8 +636,6 @@ namespace {
|
||||
&& (ttValue >= beta ? (tte->bound() & BOUND_LOWER)
|
||||
: (tte->bound() & BOUND_UPPER)))
|
||||
{
|
||||
ss->currentMove = ttMove; // Can be MOVE_NONE
|
||||
|
||||
// If ttMove is quiet, update killers, history, counter move on TT hit
|
||||
if (ttValue >= beta && ttMove)
|
||||
{
|
||||
@@ -1228,10 +1226,7 @@ moves_loop: // When in check search starts from here
|
||||
&& ttValue != VALUE_NONE // Only in case of TT access race
|
||||
&& (ttValue >= beta ? (tte->bound() & BOUND_LOWER)
|
||||
: (tte->bound() & BOUND_UPPER)))
|
||||
{
|
||||
ss->currentMove = ttMove; // Can be MOVE_NONE
|
||||
return ttValue;
|
||||
}
|
||||
|
||||
// Evaluate the position statically
|
||||
if (InCheck)
|
||||
|
||||
Reference in New Issue
Block a user