Skip to content

Commit 6373fd5

Browse files
vondelemcostalba
authored andcommitted
Remove useless initializations (#2115)
Removes two unneeded inits, they are always set before their use later on. No functional change.
1 parent a858b5a commit 6373fd5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/search.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,8 +584,7 @@ namespace {
584584
assert(0 <= ss->ply && ss->ply < MAX_PLY);
585585

586586
(ss+1)->ply = ss->ply + 1;
587-
ss->currentMove = (ss+1)->excludedMove = bestMove = MOVE_NONE;
588-
ss->continuationHistory = &thisThread->continuationHistory[NO_PIECE][0];
587+
(ss+1)->excludedMove = bestMove = MOVE_NONE;
589588
(ss+2)->killers[0] = (ss+2)->killers[1] = MOVE_NONE;
590589
Square prevSq = to_sq((ss-1)->currentMove);
591590

0 commit comments

Comments
 (0)