From: Joost VandeVondele Date: Wed, 24 Apr 2019 17:51:57 +0000 (+0200) Subject: Remove useless initializations (#2115) X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=6373fd56e90bc6114230a70cacad804248d955e2 Remove useless initializations (#2115) Removes two unneeded inits, they are always set before their use later on. No functional change. --- diff --git a/src/search.cpp b/src/search.cpp index 5911e983..f9fdc261 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -584,8 +584,7 @@ namespace { assert(0 <= ss->ply && ss->ply < MAX_PLY); (ss+1)->ply = ss->ply + 1; - ss->currentMove = (ss+1)->excludedMove = bestMove = MOVE_NONE; - ss->continuationHistory = &thisThread->continuationHistory[NO_PIECE][0]; + (ss+1)->excludedMove = bestMove = MOVE_NONE; (ss+2)->killers[0] = (ss+2)->killers[1] = MOVE_NONE; Square prevSq = to_sq((ss-1)->currentMove);