Skip to content

Commit

Permalink
Remove two useless assignments (official-stockfish#2093)
Browse files Browse the repository at this point in the history
These variables are initialized before their use in the movepicker loop.

passed STC:
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 138732 W: 30727 L: 30838 D: 77167
http://tests.stockfishchess.org/tests/view/5cb07af40ebc5925cf012c32

No functional change.
  • Loading branch information
vondele authored and mcostalba committed Apr 13, 2019
1 parent 42d271f commit 1594d15
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/search.cpp
Expand Up @@ -1226,8 +1226,7 @@ namespace {

Thread* thisThread = pos.this_thread();
(ss+1)->ply = ss->ply + 1;
ss->currentMove = bestMove = MOVE_NONE;
ss->continuationHistory = &thisThread->continuationHistory[NO_PIECE][0];
bestMove = MOVE_NONE;
inCheck = pos.checkers();
moveCount = 0;

Expand Down

0 comments on commit 1594d15

Please sign in to comment.